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:
parent
9413a6c3f1
commit
73ba6a9bc8
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue