From 85661200af2a998f51b7da6c8f5c23b4628ddc5b Mon Sep 17 00:00:00 2001 From: David Lyle Date: Thu, 2 Feb 2017 14:57:57 -0700 Subject: [PATCH] Fix Hypervisors page The index template was incorrectly changed to the default, there happens to be a lot on the index page, so this patch restores it. Closes-Bug: #1661402 (cherry picked from commit b0bbc49d8cb83c8a73770ece522478dcdc4a017d) Change-Id: I52eddbf1b271d0124ba478b24ee9cd7fca696552 --- openstack_dashboard/dashboards/admin/hypervisors/tests.py | 2 +- openstack_dashboard/dashboards/admin/hypervisors/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openstack_dashboard/dashboards/admin/hypervisors/tests.py b/openstack_dashboard/dashboards/admin/hypervisors/tests.py index 628c1f72d..647e11e54 100644 --- a/openstack_dashboard/dashboards/admin/hypervisors/tests.py +++ b/openstack_dashboard/dashboards/admin/hypervisors/tests.py @@ -41,7 +41,7 @@ class HypervisorViewTest(test.BaseAdminViewTests): self.mox.ReplayAll() res = self.client.get(reverse('horizon:admin:hypervisors:index')) - self.assertTemplateUsed(res, 'horizon/common/_data_table_view.html') + self.assertTemplateUsed(res, 'admin/hypervisors/index.html') hypervisors_tab = res.context['tab_group'].get_tab('hypervisor') self.assertItemsEqual(hypervisors_tab._tables['hypervisors'].data, diff --git a/openstack_dashboard/dashboards/admin/hypervisors/views.py b/openstack_dashboard/dashboards/admin/hypervisors/views.py index 2fc35202b..5e770f6e2 100644 --- a/openstack_dashboard/dashboards/admin/hypervisors/views.py +++ b/openstack_dashboard/dashboards/admin/hypervisors/views.py @@ -27,7 +27,7 @@ from openstack_dashboard.dashboards.admin.hypervisors \ class AdminIndexView(tabs.TabbedTableView): tab_group_class = project_tabs.HypervisorHostTabs - template_name = 'horizon/common/_data_table_view.html' + template_name = 'admin/hypervisors/index.html' page_title = _("All Hypervisors") def get_context_data(self, **kwargs):