[cbjchen,r=hopem]

Install python-lesscpy if using Icehouse release and offline-compression is
switched off ('no' or 'False').

Closes-Bug: 1311379
This commit is contained in:
Edward Hope-Morley 2014-12-03 17:34:44 +00:00
commit 543bc58f64
2 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,7 @@ lint:
@flake8 --exclude hooks/charmhelpers hooks unit_tests
@charm proof
test:
unit_test:
@echo Starting tests...
@$(PYTHON) /usr/bin/nosetests --nologcapture unit_tests

View File

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