Skip to content

Docker-machine addred suport to Vsphere for extra arument#11

Merged
gijzelaerr merged 3 commits into
gijzelaerr:masterfrom
CacheboxInc:master
Jan 25, 2018
Merged

Docker-machine addred suport to Vsphere for extra arument#11
gijzelaerr merged 3 commits into
gijzelaerr:masterfrom
CacheboxInc:master

Conversation

@gjagtap
Copy link
Copy Markdown
Contributor

@gjagtap gjagtap commented Jan 24, 2018

While Creating Vsphere Vcenter machine , it need extra argument, so added list for xarg.
this list will contain create parameter.

Ganesh Jagtap and others added 2 commits January 12, 2018 14:14
Docker-machine create() added one more list parameter,
it will suport vmwarevsphere create.
Comment thread machine/machine.py Outdated
return match.group(1)

def create(self, name, driver='virtualbox', blocking=True):
def create(self, name, driver='virtualbox', blocking=True, xarg=[]):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, you are right. Done the changes as you suggested.

Comment thread machine/machine.py Outdated
int: error code from the run
"""
cmd = ['create', '--driver', driver, name]
cmd = ['create', '--driver', driver]
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be written as `cmd = ['create', '--driver', driver] + xarg + [name]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done the changes as you suggested.

1) Removed Mutable Default Arguments
2) cmd argument list merge modified.
@gijzelaerr
Copy link
Copy Markdown
Owner

perfect thanks!

@gijzelaerr gijzelaerr merged commit bf3266a into gijzelaerr:master Jan 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants