mirror of
https://github.com/retspen/webvirtcloud
synced 2025-01-23 21:55:20 +00:00
Fix #33
This commit is contained in:
parent
5cf7076ca1
commit
d73e8c72e7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue