mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #24324 from nmadhok/vmware-cloud-driver
Sometimes VMware tools status is unavailable so make sure not to fail with KeyError
This commit is contained in:
commit
a273a9afd2
@ -836,7 +836,7 @@ def _format_instance_info_select(vm, selection):
|
||||
vm_select_info['path'] = vm["config.files.vmPathName"]
|
||||
|
||||
if 'tools_status' in selection:
|
||||
vm_select_info['tools_status'] = str(vm["guest.toolsStatus"])
|
||||
vm_select_info['tools_status'] = str(vm["guest.toolsStatus"]) if "guest.toolsStatus" in vm else "N/A"
|
||||
|
||||
if ('private_ips' or 'mac_address' or 'networks') in selection:
|
||||
network_full_info = {}
|
||||
|
Loading…
Reference in New Issue
Block a user