1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Instance actions rearranged to reflect disable vm actions on instances list

This commit is contained in:
catborise 2019-07-31 09:59:44 +03:00
parent 15c42ee0f6
commit f3b8b251b5
4 changed files with 87 additions and 80 deletions

View file

@ -988,6 +988,12 @@ def instances_actions(request):
conn.shutdown(name)
return HttpResponseRedirect(request.get_full_path())
if 'powerforce' in request.POST:
conn.force_shutdown()
msg = _("Force Off")
addlogmsg(request.user.username, instance.name, msg)
return HttpResponseRedirect(request.get_full_path())
if 'powercycle' in request.POST:
msg = _("Power Cycle")
conn.force_shutdown(name)