mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
VMware: Gather facts when powerstate is specified (#37908)
This fix adds additional facts after VM powerstate management. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
6e737c8cb6
commit
4edcbeb62d
3 changed files with 8 additions and 2 deletions
|
@ -826,8 +826,7 @@ def set_vm_power_state(content, vm, state, force, timeout=0):
|
|||
result['changed'] = True
|
||||
|
||||
# need to get new metadata if changed
|
||||
if result['changed']:
|
||||
result['instance'] = gather_vm_facts(content, vm)
|
||||
result['instance'] = gather_vm_facts(content, vm)
|
||||
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue