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:
Takashi Kajinami 2024-04-08 16:41:31 +09:00
parent f81f6ad1d8
commit f3877ffa5c

View File

@ -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 {