mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-03 10:59:38 +00:00
Fix #33
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user