1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-01-24 06:05:20 +00:00
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) addlogmsg(request.user.username, instance.name, msg)
return HttpResponseRedirect(request.get_full_path() + '#powercycle') return HttpResponseRedirect(request.get_full_path() + '#powercycle')
if 'poweroff' == request.POST.get('power', ''): if 'poweroff' in request.POST:
conn.shutdown() conn.shutdown()
msg = _("Power Off") msg = _("Power Off")
addlogmsg(request.user.username, instance.name, msg) addlogmsg(request.user.username, instance.name, msg)