From: Zach Leslie Date: Mon, 21 May 2012 21:52:36 +0000 (-0700) Subject: pass ensure through so that we can remove pin prefs too X-Git-Tag: 0.0.4~9^2~5 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=5d94369f15145ed39df43b18858f818b17d56b8e;p=puppet-modules%2Fpuppetlabs-apt.git pass ensure through so that we can remove pin prefs too --- diff --git a/manifests/source.pp b/manifests/source.pp index 0040c14..ce801bc 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -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,