Nir Soffer has posted comments on this change.
Change subject: lib: api.py: preserve signature in decorator ......................................................................
Patch Set 7:
(1 comment)
https://gerrit.ovirt.org/#/c/63759/7/lib/vdsm/common/api.py File lib/vdsm/common/api.py:
Line 29: Line 30: _log = logging.getLogger("virt.api") Line 31: Line 32: Line 33: @decorator
ok, furthermore we agreed that this wrapping will go ahead in the mid/long
I'm thinking about using this in other places in vdsm, the standard decorator boilerplate is not fun to write or maintain. Line 34: def method(func, *args, **kwargs): Line 35: """ Line 36: Decorate an instance method, and return a response according to the Line 37: outcome of the call.