This is an automatically generated e-mail. To reply, visit: http://reviewboard-fedoraserver.rhcloud.com/r/169/ |
On Juli 30th, 2015, 1:55 nachm. CEST, Stephen Gallagher wrote:
config/roles/domaincontroller/role.py (Diff revision 1) def do_decommission_async(self, force=False, sender=None):278 def do_update(self, sender=None):278 def do_update_async(self, sender=None):279 # Do the magic
279 # Do the magic
280 #
280 #
281 # In case of error raise an exception
281 # In case of error raise an exception
282 pass
282 yield NoneI think we may want to raise a NotImplementedError() here, rather than yielding None, actually. If we return success, users may think we really updated, when in fact we have done nothing at all.
That's a case of "monkey sees, monkey learns". When other routines where made async, a simple
pass
becameyield None
. Perhaps we should check other occurrances ofyield None
as well?
- Nils
On Juli 30th, 2015, 9:52 vorm. CEST, Nils Philippsen wrote:
Review request for RoleKit Mailing List, Miloslav Trmac, Stephen Gallagher, and Thomas Woerner.
By Nils Philippsen.
Updated Juli 30, 2015, 9:52 vorm.
Repository:
rolekit
Description
Diffs
|