From f530a5f270fb1ba6c4675e77a1814ca4025cee59 Mon Sep 17 00:00:00 2001 From: Joe Topjian Date: Sat, 3 Jan 2015 21:46:24 +0000 Subject: [PATCH] Fix pin conditional Since the default value of package_apt_pin is an empty string rather than a boolean, it was failing the conditional test in Puppet 3.7+. This commit changes the conditional to check for an empty string. --- manifests/repo/apt.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/repo/apt.pp b/manifests/repo/apt.pp index 50687a1cc..707c619dc 100644 --- a/manifests/repo/apt.pp +++ b/manifests/repo/apt.pp @@ -31,7 +31,7 @@ key_content => $key_content, } - if $pin { + if $pin != '' { validate_re($pin, '\d\d\d') apt::pin { 'rabbitmq': packages => 'rabbitmq-server',