From fb51a6dcf657e582a80eb98cd687dc884387231f Mon Sep 17 00:00:00 2001 From: Shu Muto Date: Thu, 15 Jun 2017 18:20:16 +0900 Subject: [PATCH] Use commonized serial console This patch follows commonization of serial console in Horizon. Change-Id: I41f236f2762613e56748bb05eb7ce0e4c26158d2 Depends-On: Ib0df9ddfc74f98bfea75abce3b5d5479e3cd47bd --- zun_ui/content/container/containers/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zun_ui/content/container/containers/views.py b/zun_ui/content/container/containers/views.py index f9eb128..3f1e987 100644 --- a/zun_ui/content/container/containers/views.py +++ b/zun_ui/content/container/containers/views.py @@ -15,15 +15,16 @@ from zun_ui.api import client class SerialConsoleView(generic.TemplateView): - template_name = 'project/instances/serial_console.html' + template_name = 'serial_console.html' def get_context_data(self, **kwargs): context = super(SerialConsoleView, self).get_context_data(**kwargs) - context['container_id'] = self.kwargs['container_id'] + context['page_title'] = self.kwargs['container_id'] try: console_url = client.container_attach(self.request, self.kwargs['container_id']) context["console_url"] = console_url + context["protocols"] = "['binary', 'base64']" except Exception: context["error_message"] = "Cannot get console for container %s." \ % self.kwargs['container_id']