From cd645a8360069c1be7a484b08e53b8e305e82bf0 Mon Sep 17 00:00:00 2001 From: Mike Dorman Date: Wed, 21 May 2014 17:06:37 -0600 Subject: [PATCH] Change default 'order' parameter to be a string Under Puppet 3.5.1 (and possibly earlier versions, too), the validate_string($order) fails when $order is actaully a numeric type. Apparently there is more strict type checking now. Can't just change validate_string to a is_numeric check, because it's fairly common to use strings like '01' for the order parameter, which doesn't pass the is_numeric test. Additionally, there is nothing saying that $order must be a number. Ultimately the ordering gets implemented as filesystem directory list sorting. --- manifests/fragment.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/fragment.pp b/manifests/fragment.pp index 40baadd..a51b8c2 100644 --- a/manifests/fragment.pp +++ b/manifests/fragment.pp @@ -28,7 +28,7 @@ define concat::fragment( $target, $content = undef, $source = undef, - $order = 10, + $order = '10', $ensure = undef, $mode = undef, $owner = undef,