Merge "Use array to define command line"

This commit is contained in:
Zuul
2025-08-25 19:32:28 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -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'],
}

View File

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