From 705853a9a32b2cd09c282d166125fda97d475162 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 8 Apr 2024 16:49:02 +0900 Subject: [PATCH] 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 --- manifests/cron/db_purge.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/cron/db_purge.pp b/manifests/cron/db_purge.pp index 274c71a..3bd6796 100644 --- a/manifests/cron/db_purge.pp +++ b/manifests/cron/db_purge.pp @@ -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 {