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: Ica59437af00ea05335c934e6c3283e9207085587
This commit is contained in:
parent
6b613b7778
commit
bf6f63fb90
@ -59,15 +59,15 @@
|
||||
# Defaults to present.
|
||||
#
|
||||
class manila::cron::db_purge (
|
||||
$minute = 1,
|
||||
$hour = 0,
|
||||
$monthday = '*',
|
||||
$month = '*',
|
||||
$weekday = '*',
|
||||
$user = $::manila::params::user,
|
||||
$age = 0,
|
||||
$destination = '/var/log/manila/manila-rowsflush.log',
|
||||
$maxdelay = 0,
|
||||
$minute = 1,
|
||||
$hour = 0,
|
||||
$monthday = '*',
|
||||
$month = '*',
|
||||
$weekday = '*',
|
||||
$user = $::manila::params::user,
|
||||
$age = 0,
|
||||
$destination = '/var/log/manila/manila-rowsflush.log',
|
||||
Integer[0] $maxdelay = 0,
|
||||
Enum['present', 'absent'] $ensure = 'present',
|
||||
) inherits manila::params {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user