mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
VMware: restore timeout in set_vm_power_state operation (#47723)
'state_change_timeout' parameter was removed, this introduced regression. Fixes: #47722 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
7c11c67156
commit
a87a62ba8a
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- Restore timeout in set_vm_power_state operation in vmware_guest_powerstate module.
|
|
@ -207,7 +207,7 @@ def main():
|
|||
"given are invalid: %s" % (module.params.get('state'),
|
||||
to_native(e.msg)))
|
||||
else:
|
||||
result = set_vm_power_state(pyv.content, vm, module.params['state'], module.params['force'])
|
||||
result = set_vm_power_state(pyv.content, vm, module.params['state'], module.params['force'], module.params['state_change_timeout'])
|
||||
else:
|
||||
module.fail_json(msg="Unable to set power state for non-existing virtual machine : '%s'" % (module.params.get('uuid') or module.params.get('name')))
|
||||
|
||||
|
|
Loading…
Reference in a new issue