validate maxdelay for cron job
The parameter descriptions says the value should be a positive integer (or 0). Validate the given value to reject invalid values such as strings or even negative values. Change-Id: I91d029250da223f999381d594a3c7b953ec19898
This commit is contained in:
parent
f81f6ad1d8
commit
f3877ffa5c
@ -61,15 +61,15 @@
|
||||
# Defaults to present.
|
||||
#
|
||||
class cinder::cron::db_purge (
|
||||
$minute = 1,
|
||||
$hour = 0,
|
||||
$monthday = '*',
|
||||
$month = '*',
|
||||
$weekday = '*',
|
||||
$user = $::cinder::params::user,
|
||||
$age = 30,
|
||||
$destination = '/var/log/cinder/cinder-rowsflush.log',
|
||||
$maxdelay = 0,
|
||||
$minute = 1,
|
||||
$hour = 0,
|
||||
$monthday = '*',
|
||||
$month = '*',
|
||||
$weekday = '*',
|
||||
$user = $::cinder::params::user,
|
||||
$age = 30,
|
||||
$destination = '/var/log/cinder/cinder-rowsflush.log',
|
||||
Integer[0] $maxdelay = 0,
|
||||
Enum['present', 'absent'] $ensure = 'present',
|
||||
) inherits cinder::params {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user