Commit a8e128f0 by Őry Máté

one: fix #94

parent 62a8e017
......@@ -510,7 +510,10 @@ def vm_resume(request, iid, *args, **kwargs):
messages.success(request, _('Virtual machine is successfully resumed.'))
except:
messages.error(request, _('Failed to resume virtual machine.'))
try:
obj.renew()
except:
pass
return redirect('/')
@login_required
......
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