Browse Source

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
James Page 5 months ago
parent
commit
f365df6f0d
2 changed files with 3 additions and 1 deletions
  1. 1
    0
      hooks/horizon_utils.py
  2. 2
    1
      unit_tests/test_horizon_utils.py

+ 1
- 0
hooks/horizon_utils.py View File

@@ -257,6 +257,7 @@ def determine_packages():
257 257
     if release >= 'queens':
258 258
         packages.append('python-designate-dashboard')
259 259
         packages.append('python-heat-dashboard')
260
+        packages.append('python-neutron-fwaas-dashboard')
260 261
     if release >= 'rocky':
261 262
         packages = [p for p in packages if not p.startswith('python-')]
262 263
         packages.extend(PY3_PACKAGES)

+ 2
- 1
unit_tests/test_horizon_utils.py View File

@@ -66,7 +66,8 @@ class TestHorizonUtils(CharmTestCase):
66 66
                    ['python-pymysql',
67 67
                     'python-neutron-lbaas-dashboard',
68 68
                     'python-designate-dashboard',
69
-                    'python-heat-dashboard']))
69
+                    'python-heat-dashboard',
70
+                    'python-neutron-fwaas-dashboard']))
70 71
 
71 72
     def test_determine_packages_rocky(self):
72 73
         horizon_utils.os_release.return_value = 'rocky'

Loading…
Cancel
Save