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: I9c60cfe63697632fc816eec3aa2824578f0d3573
This commit is contained in:
Takashi Kajinami 2024-04-08 16:46:41 +09:00
parent 8780840907
commit f233ad9240
2 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ class keystone::cron::fernet_rotate (
$monthday = '*',
$month = '*',
$weekday = '*',
$maxdelay = 0,
Integer[0] $maxdelay = 0,
$user = $::keystone::params::user,
) inherits keystone::params {

View File

@ -67,8 +67,8 @@ class keystone::cron::trust_flush (
$monthday = '*',
$month = '*',
$weekday = '*',
Integer $maxdelay = 0,
Integer $age = 0,
Integer[0] $maxdelay = 0,
Integer[0] $age = 0,
$destination = '/var/log/keystone/keystone-trustflush.log',
$user = $::keystone::params::user,
) inherits keystone::params {