From 09a01d80875c8572433c75b19612be6ae8fdb742 Mon Sep 17 00:00:00 2001 From: "Joshua M. Keyes" Date: Sat, 15 Nov 2014 16:48:18 -0800 Subject: [PATCH] Ensure validate_cmd is a string and fail explicitly otherwise. --- manifests/init.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index d0caf2527..fd7b3e12b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -82,6 +82,9 @@ validate_bool($replace) validate_re($order, '^alpha$|^numeric$') validate_bool($ensure_newline) + if $validate_cmd and ! is_string($validate_cmd) { + fail('$validate_cmd must be a string') + } if $gnu { warning('The $gnu parameter to concat is deprecated and has no effect') }