]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
Preserve backwards compatibility
authorZach Leslie <zach@puppetlabs.com>
Mon, 21 May 2012 22:03:30 +0000 (15:03 -0700)
committerZach Leslie <zach@puppetlabs.com>
Mon, 21 May 2012 22:03:30 +0000 (15:03 -0700)
manifests/pin.pp

index f19df00f230f859d03674afad42a35ff4f532243..73f5795f3c95c3508b291e475611e60a783385a5 100644 (file)
@@ -18,7 +18,7 @@ define apt::pin(
   } elsif $origin != '' {
     $pin = "origin \"${origin}\""
   } else {
-    err("Apt::Pin needs either $release or $origin")
+    $pin = "release a=${name}"
   }
 
   file { "${name}.pref":