Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge pull request #508 from puppetlabs/travis-puppet4
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
pin.pp
diff --git
a/manifests/pin.pp
b/manifests/pin.pp
index b27ed8ea2ab699678ece5524ac8af4377f836333..bcccf28b7c8058532e30827c172a58f0f171bc1b 100644
(file)
--- a/
manifests/pin.pp
+++ b/
manifests/pin.pp
@@
-3,7
+3,7
@@
define apt::pin(
$ensure = present,
define apt::pin(
$ensure = present,
- $explanation =
"${caller_module_name}: ${name}"
,
+ $explanation =
undef
,
$order = undef,
$packages = '*',
$priority = 0,
$order = undef,
$packages = '*',
$priority = 0,
@@
-20,6
+20,16
@@
define apt::pin(
fail('Only integers are allowed in the apt::pin order param')
}
fail('Only integers are allowed in the apt::pin order param')
}
+ if $explanation {
+ $_explanation = $explanation
+ } else {
+ if defined('$caller_module_name') { # strict vars check
+ $_explanation = "${caller_module_name}: ${name}"
+ } else {
+ $_explanation = ": ${name}"
+ }
+ }
+
$pin_release_array = [
$release,
$codename,
$pin_release_array = [
$release,
$codename,