mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Add explanation for boot menu changes. Minor cosmetic fixes
This commit is contained in:
parent
b757c62d4f
commit
8d2b3e3024
2 changed files with 8 additions and 1 deletions
|
|
@ -622,6 +622,11 @@ def instance(request, compute_id, vname):
|
|||
order_list[idx] = {"type": type, "dev": dev}
|
||||
conn.set_bootorder(order_list)
|
||||
msg = _("Set boot order")
|
||||
|
||||
if not conn.get_status() == 5:
|
||||
messages.success(request, _("Boot menu changes applied. But it will be activated after shutdown"))
|
||||
else:
|
||||
messages.success(request, _("Boot order changed successfully."))
|
||||
addlogmsg(request.user.username, instance.name, msg)
|
||||
return HttpResponseRedirect(request.get_full_path() + '#boot_opt')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue