This commit is contained in:
Anatoliy Guskov
2015-07-08 08:03:36 +03:00
parent 5cf7076ca1
commit d73e8c72e7

View File

@@ -228,7 +228,7 @@ def instance(request, compute_id, vname):
addlogmsg(request.user.username, instance.name, msg)
return HttpResponseRedirect(request.get_full_path() + '#powercycle')
if 'poweroff' == request.POST.get('power', ''):
if 'poweroff' in request.POST:
conn.shutdown()
msg = _("Power Off")
addlogmsg(request.user.username, instance.name, msg)