1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 23:55:24 +00:00

Fixed powercycle on instances page

This commit is contained in:
Retspen 2015-03-27 11:34:43 +02:00
parent f5ce432c56
commit 7bb6782037

View file

@ -91,7 +91,7 @@ def instances(request):
if 'powercycle' in request.POST: if 'powercycle' in request.POST:
msg = _("Power Cycle") msg = _("Power Cycle")
conn.force_shutdown(name) conn.force_shutdown(name)
conn.start() conn.start(name)
addlogmsg(request.user.id, instance.id, msg) addlogmsg(request.user.id, instance.id, msg)
return HttpResponseRedirect(request.get_full_path()) return HttpResponseRedirect(request.get_full_path())
if 'poweroff' in request.POST: if 'poweroff' in request.POST: