]> scripts.mit.edu Git - wizard.git/commitdiff
Skip over strategies that don't provide a strict subset of the ArgSchema.
authorEvan Broder <broder@MIT.EDU>
Fri, 26 Feb 2010 04:44:55 +0000 (23:44 -0500)
committerEdward Z. Yang <ezyang@mit.edu>
Mon, 1 Mar 2010 17:02:28 +0000 (12:02 -0500)
Signed-off-by: Evan Broder <broder@mit.edu>
wizard/install/__init__.py

index 8ca40a30103e6a8250473fda9b7c39fb4eb0b456..42dcce5cd1bc263f9731c3d286841b9b2a3d6c12 100644 (file)
@@ -348,6 +348,8 @@ class ArgSchema(object):
         if missing:
             raise MissingRequiredParam(missing)
         for strategy in self.strategies:
+            if any(not hasattr(options, name) for name in strategy.provides):
+                continue
             if all(getattr(options, name) is not None for name in strategy.provides):
                 continue
             for name in strategy.provides: