mooli tayer has posted comments on this change. Change subject: tool: change configure verb logic. ......................................................................
Patch Set 7: (1 comment) http://gerrit.ovirt.org/#/c/34100/7/lib/vdsm/tool/configurator.py File lib/vdsm/tool/configurator.py: Line 333: Line 334: def _should_configure(c, args): Line 335: configured = _isconfigured(c) Line 336: configure_allowed = (configured == configurators.NO or Line 337: (configured == configurators.MAYBE and args.force)) > want to make it even more readable ? do: if configured is YES this return False. Passing isconfigured(c) is not good for me since I also call 'name' and 'validate' Line 338: if not _validate(c) and not configure_allowed: Line 339: raise configurators.InvalidConfig( Line 340: "Confiuration of %s is invalid" % c.name Line 341: ) -- To view, visit http://gerrit.ovirt.org/34100 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I166fbae855ebff93ef84270f11b74f32fcc115c2 Gerrit-PatchSet: 7 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: mooli tayer <[email protected]> Gerrit-Reviewer: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Nir Soffer <[email protected]> Gerrit-Reviewer: Saggi Mizrahi <[email protected]> Gerrit-Reviewer: Yaniv Bronhaim <[email protected]> Gerrit-Reviewer: Yeela Kaplan <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: mooli tayer <[email protected]> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
