mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02: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}
|
||||
|
||||
except Exception:
|
||||
result = {'changed': False, 'failed': True,
|
||||
'msg': get_exception()}
|
||||
e = get_exception()
|
||||
result = {'changed': False, 'failed': True, 'msg': e}
|
||||
|
||||
if task:
|
||||
self.wait_for_task(task)
|
||||
|
|
Loading…
Reference in a new issue