Commit b649ffcb by tarokkk

one: fix #65

parent 198754b4
...@@ -250,8 +250,10 @@ def vm_new(request, template=None, share=None, redir=True): ...@@ -250,8 +250,10 @@ def vm_new(request, template=None, share=None, redir=True):
type = share.type if share else 'LAB' type = share.type if share else 'LAB'
TYPES[type]['suspend'] TYPES[type]['suspend']
time_of_suspend = TYPES[type]['suspend']+datetime.now() time_of_suspend = TYPES[type]['suspend']+datetime.now()
TYPES[type]['delete'] if TYPES[type]['delete']:
time_of_delete = TYPES[type]['delete']+datetime.now() time_of_delete = TYPES[type]['delete']+datetime.now()
else:
time_of_delete = None
inst = None inst = None
if go: if go:
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment