Merge pull request #783 from puppetlabs/pdksync_bumping_puppet_version
[puppet-modules/puppetlabs-apt.git] / manifests / pin.pp
index ee32de4694a5a50c7dda1cd48f89c8c1de214da7..831d75f03b50b6c4b41215ae71dfeae534910fc3 100644 (file)
@@ -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