diff --git a/instances/templates/instance.html b/instances/templates/instance.html index 4631120..59fcc40 100644 --- a/instances/templates/instance.html +++ b/instances/templates/instance.html @@ -616,7 +616,9 @@ {% endifequal %} {% else %} -

{% trans "**** Please shutdown instance to modify boot menu ****" %} + {% ifequal bootmenu 0 %} +

{% trans "**** Please shutdown instance to modify boot menu ****" %} + {% endifequal %} {% endifequal %}

diff --git a/instances/views.py b/instances/views.py index e3c7628..36b7327 100644 --- a/instances/views.py +++ b/instances/views.py @@ -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')