From 446abc41bfe562bcc1d2933bd42d0225c6f3cb53 Mon Sep 17 00:00:00 2001 From: zhubx007 Date: Wed, 25 Jul 2018 14:08:50 +0800 Subject: [PATCH] add dns_name and dns_domain into admin column https://review.openstack.org/#/c/561185/ According to the above merged commit, dns_name and dns_domain are added into project/floating_ips/tables.py. But because of the class 'FloatingIPsTable' inherits the project_tables.FloatingIPsTable, so that we should add dns_name and dns_domain into columns of Meta. If not, if you click the Admin/Network/Floating IPs, the page will crash. Closes-Bug: #1785897 Change-Id: I6e933749a56a492989cab002c1b65656b7e2c65b --- openstack_dashboard/dashboards/admin/floating_ips/tables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack_dashboard/dashboards/admin/floating_ips/tables.py b/openstack_dashboard/dashboards/admin/floating_ips/tables.py index ae8eaf9803..15e90a62fd 100644 --- a/openstack_dashboard/dashboards/admin/floating_ips/tables.py +++ b/openstack_dashboard/dashboards/admin/floating_ips/tables.py @@ -86,4 +86,5 @@ class FloatingIPsTable(project_tables.FloatingIPsTable): AdminFloatingIPsFilterAction) row_actions = (AdminSimpleDisassociateIP, AdminReleaseFloatingIP) - columns = ('tenant', 'ip', 'description', 'fixed_ip', 'pool', 'status') + columns = ('tenant', 'ip', 'description', 'fixed_ip', 'pool', + 'status', 'dns_name', 'dns_domain')