Ommit group when OS id is empty
This commit is contained in:
parent
2b4f351717
commit
d7b01396b5
|
@ -370,6 +370,7 @@ def main_list(options, config_path):
|
||||||
|
|
||||||
if 'proxmox_os_id' in results['_meta']['hostvars'][vm]:
|
if 'proxmox_os_id' in results['_meta']['hostvars'][vm]:
|
||||||
osid = results['_meta']['hostvars'][vm]['proxmox_os_id']
|
osid = results['_meta']['hostvars'][vm]['proxmox_os_id']
|
||||||
|
if osid:
|
||||||
if osid not in results:
|
if osid not in results:
|
||||||
results[osid] = {
|
results[osid] = {
|
||||||
'hosts': []
|
'hosts': []
|
||||||
|
|
Reference in New Issue