mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
set version pyoidc, clean up js, fix alumni rtp stuff
This commit is contained in:
parent
d0995365dd
commit
820a1c999e
6 changed files with 34 additions and 163 deletions
|
@ -93,11 +93,10 @@ def process_expiring_vms_task():
|
|||
expiring_vms.append([vm.id, vm.name, days])
|
||||
if days <= 0:
|
||||
expired_vms.append([vm.id, vm.name, days])
|
||||
if days <= 0:
|
||||
vm.stop()
|
||||
elif days == -7:
|
||||
elif days <= -7:
|
||||
print(
|
||||
"Deleting {} ({}) as it has been a week since expiration.".
|
||||
"Deleting {} ({}) as it has been at least a week since expiration.".
|
||||
format(vm.name, vm.id))
|
||||
send_stop_ssh_tunnel(vm.id)
|
||||
delete_vm_task(vm.id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue