Add proxmox_type on qemu

This commit is contained in:
maynero 2021-05-09 16:31:26 +08:00
parent c76e31d8d9
commit 1b9f2582cb
1 changed files with 1 additions and 0 deletions

View File

@ -321,6 +321,7 @@ def main_list(options, config_path):
type = results['_meta']['hostvars'][vm]['proxmox_type']
except KeyError:
type = 'qemu'
results['_meta']['hostvars'][vm]['proxmox_type'] = 'qemu'
try:
description = proxmox_api.vm_description_by_type(node, vmid, type)['description']
except KeyError: