Merge pull request #36 from aacater/main

check if template key exists
This commit is contained in:
jpattWPC 2022-10-24 10:40:51 -05:00 committed by GitHub
commit ef95a822c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)