Defined get_exception() (#20087)

This fixes #20080
pull/20099/head
Dag Wieers 8 years ago committed by Toshio Kuratomi
parent 16a1585ffc
commit 560831752e

@ -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…
Cancel
Save