mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Lint fixes
This commit is contained in:
parent
3f09d58fff
commit
2b99aab501
@ -2352,7 +2352,7 @@ def create(vm_):
|
||||
log.info('Creating {0}'.format(vm_['name']))
|
||||
|
||||
task = folder_ref.CreateVM_Task(config_spec, resourcepool_ref)
|
||||
_wait_for_task(task, vm_name, "create", 5, 'info')
|
||||
salt.utils.vmware.wait_for_task(task, vm_name, "create", 5, 'info')
|
||||
except Exception as exc:
|
||||
err_msg = 'Error creating {0}: {1}'.format(vm_['name'], exc)
|
||||
log.error(
|
||||
@ -2367,7 +2367,7 @@ def create(vm_):
|
||||
# Find how to power on in CreateVM_Task (if possible), for now this will do
|
||||
if not clone_type and power:
|
||||
task = new_vm_ref.PowerOn()
|
||||
_wait_for_task(task, vm_name, 'power', 5, 'info')
|
||||
salt.utils.vmware.wait_for_task(task, vm_name, 'power', 5, 'info')
|
||||
|
||||
# If it a template or if it does not need to be powered on then do not wait for the IP
|
||||
if not template and power:
|
||||
|
Loading…
Reference in New Issue
Block a user