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: Ia6e238f85b7eef5b8f7b65ca37481d77a48c378a
This commit is contained in:
Takashi Kajinami 2024-04-08 16:48:25 +09:00
parent 722d68b036
commit f93968a061
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class swift::storage::drive_audit(
$monthday = '*',
$month = '*',
$weekday = '*',
$maxdelay = 0,
Integer[0] $maxdelay = 0,
# drive-audit.conf options
$log_facility = 'LOG_LOCAL2',
$log_level = 'INFO',