Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bea6af8
)
include module apt in backports
author
Sascha Rüssel
<ruessel@synyx.de>
Wed, 6 Nov 2019 13:47:19 +0000
(14:47 +0100)
committer
Sascha Rüssel
<ruessel@synyx.de>
Mon, 9 Dec 2019 16:23:26 +0000
(17:23 +0100)
Otherwise there can be issues with undef values.
like:
Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /etc/puppetlabs/code/environments/production/modules/apt/manifests/backports.pp, line: 73, column: 18) on node …
manifests/backports.pp
patch
|
blob
|
history
diff --git
a/manifests/backports.pp
b/manifests/backports.pp
index 0fa69586e78089a3e38a867b59b2e4ffcc0be79c..1b9cabbaf10ff062d868f86f4dd6331380ee5b4b 100644
(file)
--- a/
manifests/backports.pp
+++ b/
manifests/backports.pp
@@
-52,6
+52,9
@@
class apt::backports (
Optional[Variant[String, Hash]] $key = undef,
Optional[Variant[Integer, String, Hash]] $pin = 200,
){
+
+ include apt
+
if $location {
$_location = $location
}