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: I00fda4e07f90f582699272bcdf2c576b6a2154dc
This commit is contained in:
Takashi Kajinami 2024-04-08 16:49:02 +09:00
parent 60576906e6
commit 705853a9a3

View File

@ -77,7 +77,7 @@ class watcher::cron::db_purge (
$user = $::watcher::params::user,
$age = 30,
$destination = '/var/log/watcher/watcher-rowsflush.log',
$maxdelay = 0,
Integer[0] $maxdelay = 0,
Boolean $exclude_orphans = false,
$max_number = undef,
) inherits watcher::params {