Add proxmox_type on qemu
This commit is contained in:
parent
c76e31d8d9
commit
1b9f2582cb
|
@ -321,6 +321,7 @@ def main_list(options, config_path):
|
||||||
type = results['_meta']['hostvars'][vm]['proxmox_type']
|
type = results['_meta']['hostvars'][vm]['proxmox_type']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
type = 'qemu'
|
type = 'qemu'
|
||||||
|
results['_meta']['hostvars'][vm]['proxmox_type'] = 'qemu'
|
||||||
try:
|
try:
|
||||||
description = proxmox_api.vm_description_by_type(node, vmid, type)['description']
|
description = proxmox_api.vm_description_by_type(node, vmid, type)['description']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Reference in New Issue