mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00: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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user