Commit bacdb574 by vagrant

Added ability to toggle binary flags through the python calls

parent 62e9caa1
......@@ -665,7 +665,8 @@ class Modules(object):
def __exit__(self, t, v, b):
self.cleanup()
def _set_arguments(self, argv=[], kargv={}):
def _set_arguments(self, argv=None, kargv=None):
if kargv:
for (k, v) in iterator(kargv):
k = self._parse_api_opt(k)
if v not in [True, False, None]:
......@@ -677,6 +678,9 @@ class Modules(object):
argv.append(k)
argv.append(value)
else:
# Only append if the value is True; this allows for toggling values
# by the function call.
if v:
argv.append(k)
if not argv and not self.arguments:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment