Change in vdsm[master]: dispatcher: use a method wrapper instead of Protect
danken at redhat.com
danken at redhat.com
Fri Apr 18 14:49:29 UTC 2014
Dan Kenigsberg has posted comments on this change.
Change subject: dispatcher: use a method wrapper instead of Protect
......................................................................
Patch Set 4: Code-Review-1
(2 comments)
big + for the initiative; but please either kill "help" completely or maintain it.
http://gerrit.ovirt.org/#/c/26774/4/vdsm/storage/dispatcher.py
File vdsm/storage/dispatcher.py:
Line 44
Line 45
Line 46
Line 47
Line 48
it would not be a horrible loss if xml-rpc's system.methodHelp is dropped, but it deserves its own patch and commit message (as well as dropping _methodHelp)
Alternatively, _methodHelp can read the docstring directly from the wrapper function.
Line 87:
Line 88: return se.generateResponse(e)
Line 89: except:
Line 90: try:
Line 91: self.log.error(
there's plenty room for more simplification in future patches.
Line 92: "Unhandled exception in run and protect: %s, "
Line 93: "args: %s ", self.name, args, exc_info=True)
Line 94: finally:
Line 95: return self.STATUS_ERROR.copy()
--
To view, visit http://gerrit.ovirt.org/26774
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia7a1a2f88238cb4b845e62de0c1f12e462a4ae72
Gerrit-PatchSet: 4
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi at redhat.com>
Gerrit-Reviewer: Vinzenz Feenstra <vfeenstr at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
More information about the vdsm-patches
mailing list