Skip to content

Commit

Permalink
Fix pin conditional
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jtopjian committed Jan 3, 2015
1 parent 1cc2e54 commit f530a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/repo/apt.pp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
key_content => $key_content,
}

if $pin {
if $pin != '' {
validate_re($pin, '\d\d\d')
apt::pin { 'rabbitmq':
packages => 'rabbitmq-server',
Expand Down

0 comments on commit f530a5f

Please sign in to comment.