add db parameter for renewing vms

This commit is contained in:
Jordan Rodgers 2018-01-24 03:32:47 -05:00
parent bf19241bed
commit 3fd24e42ea

View file

@ -213,7 +213,7 @@ def vm_renew(vmid):
proxmox = connect_proxmox()
if 'rtp' in session['userinfo']['groups'] or int(
vmid) in get_user_allowed_vms(proxmox, user):
renew_vm_expire(vmid, app.config['VM_EXPIRE_MONTHS'])
renew_vm_expire(db, vmid, app.config['VM_EXPIRE_MONTHS'])
for interface in get_vm_interfaces(proxmox, vmid):
renew_ip(starrs, get_ip_for_mac(starrs, interface[1]))
return '', 200