You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a regex validation check on the $interval variable in the icinga2::object::notification resource type, however this could potentially contain just a string with reference to an icinga variable, such as "service.vars.notification.interval" causing the validation check to fail.
Current Behavior
validate_re() on $interval fails when checking against reference to icinga variable.
Possible Solution
Extended the regex to something like (^\d+(\.\d+)?[dhms]?$|(service|host)\.vars.*)
OR
Add a $custom_cfg array parameter into the icinga2::object and all object types (notification, host, user etc) allowing a user (at their own risk) to add custom configuration.
OR
Replace the validate_re() with validate_string() on the $interval variable.
Your Environment
Module version: 1.3.5
Puppet version: 4.10.8
Operating System and version: Debian 9
The text was updated successfully, but these errors were encountered:
There is a regex validation check on the $interval variable in the icinga2::object::notification resource type, however this could potentially contain just a string with reference to an icinga variable, such as "service.vars.notification.interval" causing the validation check to fail.
Current Behavior
validate_re() on $interval fails when checking against reference to icinga variable.
Possible Solution
(^\d+(\.\d+)?[dhms]?$|(service|host)\.vars.*)
OR
OR
Your Environment
The text was updated successfully, but these errors were encountered: