mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-14 22:11:51 +00:00
only send 1 email for rtp expiration notices
This commit is contained in:
parent
a20fd1d873
commit
d0995365dd
1 changed files with 3 additions and 3 deletions
|
@ -80,10 +80,10 @@ def process_expiring_vms_task():
|
|||
db = connect_db()
|
||||
starrs = connect_starrs()
|
||||
pools = get_pools(proxmox, db)
|
||||
expired_vms = []
|
||||
for pool in pools:
|
||||
user = User(pool)
|
||||
expiring_vms = []
|
||||
expired_vms = []
|
||||
vms = user.vms
|
||||
for vm in vms:
|
||||
vm = VM(vm['vmid'])
|
||||
|
|
Loading…
Reference in a new issue