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: I63719129644e3723b86d0b63b78c36e151724473
This commit is contained in:
parent
58bb9cac0b
commit
fe1dd0036f
|
@ -63,16 +63,16 @@
|
|||
# Defaults to present.
|
||||
#
|
||||
class glance::cron::db_purge (
|
||||
$minute = 1,
|
||||
$hour = 0,
|
||||
$monthday = '*',
|
||||
$month = '*',
|
||||
$weekday = '*',
|
||||
$user = $::glance::params::user,
|
||||
$age = 30,
|
||||
$max_rows = 100,
|
||||
$destination = '/var/log/glance/glance-rowsflush.log',
|
||||
$maxdelay = 0,
|
||||
$minute = 1,
|
||||
$hour = 0,
|
||||
$monthday = '*',
|
||||
$month = '*',
|
||||
$weekday = '*',
|
||||
$user = $::glance::params::user,
|
||||
$age = 30,
|
||||
$max_rows = 100,
|
||||
$destination = '/var/log/glance/glance-rowsflush.log',
|
||||
Integer[0] $maxdelay = 0,
|
||||
Enum['present', 'absent'] $ensure = 'present',
|
||||
) inherits glance::params {
|
||||
|
||||
|
|
|
@ -63,16 +63,16 @@
|
|||
# Defaults to present.
|
||||
#
|
||||
class glance::cron::db_purge_images_table (
|
||||
$minute = 1,
|
||||
$hour = 0,
|
||||
$monthday = '*',
|
||||
$month = '*',
|
||||
$weekday = '*',
|
||||
$user = $::glance::params::user,
|
||||
$age = 30,
|
||||
$max_rows = 100,
|
||||
$destination = '/var/log/glance/glance-images-rowsflush.log',
|
||||
$maxdelay = 0,
|
||||
$minute = 1,
|
||||
$hour = 0,
|
||||
$monthday = '*',
|
||||
$month = '*',
|
||||
$weekday = '*',
|
||||
$user = $::glance::params::user,
|
||||
$age = 30,
|
||||
$max_rows = 100,
|
||||
$destination = '/var/log/glance/glance-images-rowsflush.log',
|
||||
Integer[0] $maxdelay = 0,
|
||||
Enum['present', 'absent'] $ensure = 'present',
|
||||
) inherits glance::params {
|
||||
|
||||
|
|
Loading…
Reference in New Issue