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
This commit is contained in:
James Page 2018-12-14 10:57:19 +00:00
parent 10b3e9ca9c
commit f365df6f0d
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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'