diff --git a/manifests/init.pp b/manifests/init.pp index 095ea64..44baeaa 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -35,7 +35,7 @@ validate_hash($resources) if $backend { validate_re($backend, ['^etcd$', '^consul$', '^zookeeper$', '^dynamodb$', '^redis$', '^env$']) } - if $interval { validate_re($interval, '^\d+') } + if $interval { validate_re("$interval", '^\d+') } if $confdnoop { validate_bool($confdnoop) } if $log_level { validate_re($log_level, ['^debug$', '^info$', '^warn(ing)?$', '^error$', '^fatal$', '^panic$']) } if $nodes { validate_array($nodes) } diff --git a/manifests/resource.pp b/manifests/resource.pp index ff1b2fe..d4d7649 100644 --- a/manifests/resource.pp +++ b/manifests/resource.pp @@ -28,7 +28,7 @@ if $reload_cmd { validate_string($reload_cmd) } if $check_cmd { validate_string($check_cmd) } if $prefix { validate_string($prefix) } - if $mode { validate_re($mode, '^\d+')} + if $mode { validate_re("$mode", '^\d+')} $resourcefile = "${confd::confdir}/conf.d/${name}.toml"