Lint fixes

This commit is contained in:
Colton Myers 2015-12-01 17:31:59 -07:00
parent 3f09d58fff
commit 2b99aab501

View File

@ -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: