diff --git a/vdiclient.py b/vdiclient.py index beca2e5..80d2a47 100644 --- a/vdiclient.py +++ b/vdiclient.py @@ -190,7 +190,7 @@ def getvms(): vms = [] try: for vm in G.proxmox.cluster.resources.get(type='vm'): - if vm['template']: + if 'template' in vm and vm['template']: continue if G.guest_type == 'both': vms.append(vm)