From f93968a061814bfd7238e420cc5deb84844fd5aa Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 8 Apr 2024 16:48:25 +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: Ia6e238f85b7eef5b8f7b65ca37481d77a48c378a --- manifests/storage/drive_audit.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/storage/drive_audit.pp b/manifests/storage/drive_audit.pp index 1577a639..3dae850c 100644 --- a/manifests/storage/drive_audit.pp +++ b/manifests/storage/drive_audit.pp @@ -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',