Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions machine/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down