diff --git a/machine/machine.py b/machine/machine.py index a0c56e1..14e0245 100644 --- a/machine/machine.py +++ b/machine/machine.py @@ -86,7 +86,7 @@ def version(self): match = self._match(cmd, regexp) return match.group(1) - def create(self, name, driver='virtualbox', blocking=True): + def create(self, name, driver='virtualbox', blocking=True, xarg=None): """ Create a docker machine using the provided name and driver NOTE: This takes a loooooong time @@ -99,7 +99,10 @@ def create(self, name, driver='virtualbox', blocking=True): Returns: int: error code from the run """ - cmd = ['create', '--driver', driver, name] + if xarg is None: + xarg = [] + cmd = ['create', '--driver', driver] + xarg + [name] + if blocking: stdout, stderr, errorcode = self._run_blocking(cmd) else: