skip templates

This commit is contained in:
aacater 2022-09-09 17:44:28 -08:00
parent f9be014ea2
commit d643cf85f4

View File

@ -187,6 +187,8 @@ def getvms():
vms = [] vms = []
try: try:
for vm in G.proxmox.cluster.resources.get(type='vm'): for vm in G.proxmox.cluster.resources.get(type='vm'):
if vm['template']:
continue
vms.append(vm) vms.append(vm)
return vms return vms
except proxmoxer.core.ResourceException as e: except proxmoxer.core.ResourceException as e: