Fix Modulefile for puppet-apt to puppetlabs-apt rename
[puppet-modules/puppetlabs-apt.git] / manifests / source.pp
index 0040c14f4e9cb853b66aadf6ab5b30a15b8d52ae..ce801bc76c90c793230ae874c89bb7b86c2ca5d6 100644 (file)
@@ -36,12 +36,13 @@ define apt::source(
   }
 
 
-  if ($pin != false) and ($ensure == 'present') {
+  if ($pin != false) {
     # Get the host portion out of the url so we can pin to origin
     $url_split = split($location, '/')
     $host      = $url_split[2]
 
     apt::pin { $name:
+      ensure   => $ensure,
       priority => $pin,
       before   => File["${name}.list"],
       origin   => $host,