mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
add db parameter for renewing vms
This commit is contained in:
parent
bf19241bed
commit
3fd24e42ea
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue