diff --git a/manifests/init.pp b/manifests/init.pp index 645fb1ee..a4b485a9 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -776,7 +776,7 @@ class horizon ( if $compress_offline { if $facts['os']['family'] == 'Debian' { exec { 'refresh_horizon_django_compress': - command => "${horizon::params::manage_py} compress --force", + command => [$horizon::params::manage_py, 'compress', '--force'], refreshonly => true, tag => ['horizon-compress'], } diff --git a/spec/classes/horizon_init_spec.rb b/spec/classes/horizon_init_spec.rb index bdfb2a78..66fdc730 100644 --- a/spec/classes/horizon_init_spec.rb +++ b/spec/classes/horizon_init_spec.rb @@ -790,7 +790,7 @@ describe 'horizon' do shared_examples_for 'horizon on Debian' do it 'refreshes horizon django cache' do is_expected.to contain_exec('refresh_horizon_django_compress').with({ - :command => '/usr/share/openstack-dashboard/manage.py compress --force', + :command => ['/usr/share/openstack-dashboard/manage.py', 'compress', '--force'], :refreshonly => true, }) is_expected.to contain_concat(platforms_params[:config_file]).that_notifies('Exec[refresh_horizon_django_compress]')