diff --git a/salt/cloud/clouds/vmware.py b/salt/cloud/clouds/vmware.py index 9001b701d7..bda16e673e 100644 --- a/salt/cloud/clouds/vmware.py +++ b/salt/cloud/clouds/vmware.py @@ -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: