Add 'uuid' to the attributes returned from the vmware_vm_facts module. (#23773)
This commit is contained in:
parent
b95fefd8f5
commit
0d5fe8fd94
1 changed files with 3 additions and 1 deletions
|
@ -33,6 +33,7 @@ version_added: 2.0
|
||||||
author: "Joseph Callen (@jcpowermac)"
|
author: "Joseph Callen (@jcpowermac)"
|
||||||
notes:
|
notes:
|
||||||
- Tested on vSphere 5.5
|
- Tested on vSphere 5.5
|
||||||
|
- Tested on vSphere 6.5
|
||||||
requirements:
|
requirements:
|
||||||
- "python >= 2.6"
|
- "python >= 2.6"
|
||||||
- PyVmomi
|
- PyVmomi
|
||||||
|
@ -72,7 +73,8 @@ def get_all_virtual_machines(content):
|
||||||
summary.config.name: {
|
summary.config.name: {
|
||||||
"guest_fullname": summary.config.guestFullName,
|
"guest_fullname": summary.config.guestFullName,
|
||||||
"power_state": summary.runtime.powerState,
|
"power_state": summary.runtime.powerState,
|
||||||
"ip_address": _ip_address
|
"ip_address": _ip_address,
|
||||||
|
"uuid": summary.config.uuid
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue