From f365df6f0d35a9ac9c4e9b3ea314e88e356600f2 Mon Sep 17 00:00:00 2001 From: James Page Date: Fri, 14 Dec 2018 10:57:19 +0000 Subject: [PATCH] Enable fwaas dashboard for >= Queens OpenStack Queens or later requires the installation of the dashboard package for FWaaS to expose this feature in Horizon. Change-Id: Icc046ecbafe626d6af68bf65c0f62c424d370b2c Closes-Bug: 1808168 --- hooks/horizon_utils.py | 1 + unit_tests/test_horizon_utils.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hooks/horizon_utils.py b/hooks/horizon_utils.py index 86c638dc..a329511e 100644 --- a/hooks/horizon_utils.py +++ b/hooks/horizon_utils.py @@ -257,6 +257,7 @@ def determine_packages(): if release >= 'queens': packages.append('python-designate-dashboard') packages.append('python-heat-dashboard') + packages.append('python-neutron-fwaas-dashboard') if release >= 'rocky': packages = [p for p in packages if not p.startswith('python-')] packages.extend(PY3_PACKAGES) diff --git a/unit_tests/test_horizon_utils.py b/unit_tests/test_horizon_utils.py index f1b4e454..90715e5a 100644 --- a/unit_tests/test_horizon_utils.py +++ b/unit_tests/test_horizon_utils.py @@ -66,7 +66,8 @@ class TestHorizonUtils(CharmTestCase): ['python-pymysql', 'python-neutron-lbaas-dashboard', 'python-designate-dashboard', - 'python-heat-dashboard'])) + 'python-heat-dashboard', + 'python-neutron-fwaas-dashboard'])) def test_determine_packages_rocky(self): horizon_utils.os_release.return_value = 'rocky'