X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fpin.pp;h=831d75f03b50b6c4b41215ae71dfeae534910fc3;hb=a30791306b26a18d79875dbc1d99b11205802bcc;hp=ee32de4694a5a50c7dda1cd48f89c8c1de214da7;hpb=e9dadf5ed3308655d003374c4b2c2f5fe8619c27;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/pin.pp b/manifests/pin.pp index ee32de4..831d75f 100644 --- a/manifests/pin.pp +++ b/manifests/pin.pp @@ -40,7 +40,7 @@ define apt::pin( # Read the manpage 'apt_preferences(5)', especially the chapter # 'The Effect of APT Preferences' to understand the following logic # and the difference between specific and general form - if is_array($packages) { + if $packages =~ Array { $packages_string = join($packages, ' ') } else { $packages_string = $packages