install apt-transport-https on Debian 7 as well
[puppet-modules/puppetlabs-apt.git] / manifests / backports.pp
index 4faad6157a7f31664555471071c211e177e56ce2..afd4ee1c2f67077c851fb06ed694f789e1f660ee 100644 (file)
@@ -36,9 +36,9 @@ class apt::backports (
     }
   }
 
-  if is_hash($pin) {
+  if $pin =~ Hash {
     $_pin = $pin
-  } elsif is_numeric($pin) or is_string($pin) {
+  } elsif $pin =~ Numeric or $pin =~ String {
     # apt::source defaults to pinning to origin, but we should pin to release
     # for backports
     $_pin = {