mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07:00
parent
16a1585ffc
commit
560831752e
1 changed files with 2 additions and 2 deletions
|
@ -740,8 +740,8 @@ class PyVmomiHelper(object):
|
||||||
'msg': 'Cannot suspend VM in the current state %s' % current_state}
|
'msg': 'Cannot suspend VM in the current state %s' % current_state}
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
result = {'changed': False, 'failed': True,
|
e = get_exception()
|
||||||
'msg': get_exception()}
|
result = {'changed': False, 'failed': True, 'msg': e}
|
||||||
|
|
||||||
if task:
|
if task:
|
||||||
self.wait_for_task(task)
|
self.wait_for_task(task)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue