store ignored pools in db, check ignored pools when getting all pools

This commit is contained in:
Jordan Rodgers 2018-02-02 15:18:50 -05:00
parent 51de0b69af
commit 8fbae0a071
5 changed files with 39 additions and 26 deletions

View file

@ -79,7 +79,7 @@ def process_expiring_vms_task():
pools = get_pools(proxmox)
for pool in pools:
expiring_vms = []
vms = get_vms_for_user(proxmox, pool)
vms = get_vms_for_user(proxmox, db, pool)
for vm in vms:
vmid = vm['vmid']
expire = get_vm_expire(db, vmid,