ceilometer: escape % in crontab
% in cron is a reserved character and must be escape. Change-Id: Ic5c4a6126f42c700a8534c3c4d30f5951e4718ae Closes-bug: #1790503
This commit is contained in:
parent
7edd77522a
commit
10074cd598
@ -31,7 +31,7 @@ class tripleo::profile::base::ceilometer::expirer (
|
||||
if $step >= 4 {
|
||||
include ::ceilometer::expirer
|
||||
Cron <| title == 'ceilometer-expirer' |>
|
||||
{ command => "sleep $((\$(od -A n -t d -N 3 /dev/urandom) % 86400)) && ${::ceilometer::params::expirer_command}" }
|
||||
{ command => "sleep $((\$(od -A n -t d -N 3 /dev/urandom) \\% 86400)) && ${::ceilometer::params::expirer_command}" }
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ describe 'tripleo::profile::base::ceilometer::expirer' do
|
||||
it 'should trigger complete configuration' do
|
||||
is_expected.to contain_class('ceilometer::expirer')
|
||||
is_expected.to contain_cron('ceilometer-expirer').with(
|
||||
:command => 'sleep $(($(od -A n -t d -N 3 /dev/urandom) % 86400)) && ceilometer-expirer'
|
||||
:command => 'sleep $(($(od -A n -t d -N 3 /dev/urandom) \\% 86400)) && ceilometer-expirer'
|
||||
)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user