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
|
@ -72,7 +72,7 @@ class glance::cron::db_purge (
|
|||
$age = 30,
|
||||
$max_rows = 100,
|
||||
$destination = '/var/log/glance/glance-rowsflush.log',
|
||||
$maxdelay = 0,
|
||||
Integer[0] $maxdelay = 0,
|
||||
Enum['present', 'absent'] $ensure = 'present',
|
||||
) inherits glance::params {
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ class glance::cron::db_purge_images_table (
|
|||
$age = 30,
|
||||
$max_rows = 100,
|
||||
$destination = '/var/log/glance/glance-images-rowsflush.log',
|
||||
$maxdelay = 0,
|
||||
Integer[0] $maxdelay = 0,
|
||||
Enum['present', 'absent'] $ensure = 'present',
|
||||
) inherits glance::params {
|
||||
|
||||
|
|
Loading…
Reference in New Issue