add instanceUuid (also called PersistentId) in vmware utils (#38870)

(cherry picked from commit 0cdba9ff70)
pull/38975/head
Abhijeet Kasurde 7 years ago committed by GitHub
parent 0fede2ba60
commit 9a7da8d3da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
minor_changes:
- Updated virtual machine facts with instanceUUID which is unique for each VM irrespective of name and BIOS UUID.

@ -291,6 +291,7 @@ def gather_vm_facts(content, vm):
'hw_guest_ha_state': None, 'hw_guest_ha_state': None,
'hw_is_template': vm.config.template, 'hw_is_template': vm.config.template,
'hw_folder': None, 'hw_folder': None,
'instance_uuid': vm.config.instanceUuid,
'guest_tools_status': _get_vm_prop(vm, ('guest', 'toolsRunningStatus')), 'guest_tools_status': _get_vm_prop(vm, ('guest', 'toolsRunningStatus')),
'guest_tools_version': _get_vm_prop(vm, ('guest', 'toolsVersion')), 'guest_tools_version': _get_vm_prop(vm, ('guest', 'toolsVersion')),
'guest_question': vm.summary.runtime.question, 'guest_question': vm.summary.runtime.question,

Loading…
Cancel
Save