1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

VMware: return failure when shutdownguest fails with timeout (#52952)

If the state_change_timeout was exceeded in shutdownguest, there was no failure.  This adds a failure in that case.
This commit is contained in:
mtward 2019-03-11 03:37:28 -04:00 committed by Abhijeet Kasurde
parent 9413a6c3f1
commit 73ba6a9bc8

View file

@ -2616,6 +2616,9 @@ def main():
if not tmp_result["failed"]:
result["failed"] = False
result['instance'] = tmp_result['instance']
if tmp_result["failed"]:
result["failed"] = True
result["msg"] = tmp_result["msg"]
else:
# This should not happen
raise AssertionError()