mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Call correct function for resetting a VM
This commit is contained in:
parent
41a3055213
commit
76a9920a6b
1 changed files with 1 additions and 1 deletions
|
@ -2076,7 +2076,7 @@ def reset(name, call=None):
|
|||
return ret
|
||||
try:
|
||||
log.info('Resetting VM {0}'.format(name))
|
||||
task = vm["object"].Reset()
|
||||
task = vm["object"].ResetVM_Task()
|
||||
salt.utils.vmware.wait_for_task(task, name, 'reset')
|
||||
except Exception as exc:
|
||||
log.error(
|
||||
|
|
Loading…
Add table
Reference in a new issue