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: I21ecb74717c27db8f6a885dc7f70362a3d67f77a
This commit is contained in:
Takashi Kajinami 2024-04-08 16:45:22 +09:00
parent bd2debe260
commit b6657cc537
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class heat::cron::purge_deleted (
$monthday = '*',
$month = '*',
$weekday = '*',
$maxdelay = 0,
Integer[0] $maxdelay = 0,
$user = $::heat::params::user,
$age = 1,
Enum['days', 'hours', 'minutes', 'seconds'] $age_type = 'days',