Martin Polednik has posted comments on this change.
Change subject: vdsProxy pass calls to undefined methods to API and return msg/status ......................................................................
Patch Set 4:
(1 comment)
.................................................... File tests/functional/utils.py Line 81: """ Line 82: if hasattr(self.vdscli, attr): Line 83: def wrapper(*args, **kwargs): Line 84: result = getattr(self.vdscli, attr)(*args, **kwargs) Line 85: self.lastResult = result we've agreed upon allowing for removal of even more duplication by this solution without crippling the actual call (other suggestion would be passing kwargs of relevant fields to be returned) Line 86: return result['status']['code'], result['status']['message'] Line 87: return wrapper Line 88: Line 89: raise AttributeError(attr)