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:
parent
15c42ee0f6
commit
f3b8b251b5
4 changed files with 87 additions and 80 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue