Support no-start/no-define in CLI client

This commit is contained in:
2020-01-08 20:13:26 -05:00
parent f280c93c82
commit 6cd3d5c888
2 changed files with 29 additions and 4 deletions

View File

@ -424,7 +424,7 @@ def profile_remove(config, name):
return retvalue, response.json()['message']
def vm_create(config, name, profile, wait_flag):
def vm_create(config, name, profile, wait_flag, define_flag, start_flag):
"""
Create a new VM named {name} with profile {profile}
@ -434,7 +434,9 @@ def vm_create(config, name, profile, wait_flag):
"""
params = {
'name': name,
'profile': profile
'profile': profile,
'start_vm': start_flag,
'define_vm': define_flag
}
response = call_api(config, 'post', '/provisioner/create', params=params)