From 84256bf09e476c00f4a5b4b7b22d6ac4de35c71d Mon Sep 17 00:00:00 2001 From: "Liang Chen liang.chen@canonical.com" <> Date: Wed, 3 Dec 2014 11:36:25 -0500 Subject: [PATCH] install python-lesscpy when neccessary [cbjchen,r=] install python-lesscpy for icehouse release when offline-compression is set to 'no' --- hooks/horizon_hooks.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hooks/horizon_hooks.py b/hooks/horizon_hooks.py index 4f086637..4c7048f0 100755 --- a/hooks/horizon_hooks.py +++ b/hooks/horizon_hooks.py @@ -75,6 +75,11 @@ def config_changed(): else: localhost = 'localhost' + if (os_release('openstack-dashboard') == 'icehouse' and + config('offline-compression') in ['no', False]): + apt_install(filter_installed_packages(['python-lesscpy']), + fatal=True) + # Ensure default role changes are propagated to keystone for relid in relation_ids('identity-service'): keystone_joined(relid)