Defined get_exception() (#20087)

This fixes #20080
This commit is contained in:
Dag Wieers 2017-01-10 17:18:51 +01:00 committed by Toshio Kuratomi
parent 16a1585ffc
commit 560831752e

View file

@ -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)