From d73e8c72e7516a24942f4ffec1b30e4d2be18439 Mon Sep 17 00:00:00 2001 From: Anatoliy Guskov Date: Wed, 8 Jul 2015 08:03:36 +0300 Subject: [PATCH] Fix #33 --- instances/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instances/views.py b/instances/views.py index c57797c..5d51319 100644 --- a/instances/views.py +++ b/instances/views.py @@ -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)