Addition of InstanceUUID to facts (#4424)

The Instance UUID(refered to as PersistenceUUID in the API) is a the ID
vcenter uses to idenify VMs.
My use case for this is that I configure Zabbix using ansible and its
vmware module relies on using these to identify VMs.
This commit is contained in:
Jason Cormie 2016-11-08 23:34:11 +00:00 committed by Matt Clay
parent 7eeb3445a4
commit 9baca6ef3d

View file

@ -1556,6 +1556,7 @@ def gather_facts(vm):
'hw_guest_full_name': vm.properties.config.guestFullName,
'hw_guest_id': vm.properties.config.guestId,
'hw_product_uuid': vm.properties.config.uuid,
'hw_instance_uuid': vm.properties.config.instanceUuid,
'hw_processor_count': vm.properties.config.hardware.numCPU,
'hw_memtotal_mb': vm.properties.config.hardware.memoryMB,
'hw_interfaces':[],