1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
balonik 2018-04-02 07:49:39 +02:00 committed by ansibot
parent 93fc99c576
commit 0cdba9ff70

View file

@ -292,6 +292,7 @@ def gather_vm_facts(content, vm):
'hw_is_template': vm.config.template, 'hw_is_template': vm.config.template,
'hw_folder': None, 'hw_folder': None,
'hw_version': vm.config.version, 'hw_version': vm.config.version,
'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,