Skip to content

Commit

Permalink
include module apt in backports
Browse files Browse the repository at this point in the history
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 …
  • Loading branch information
zivis committed Dec 9, 2019
1 parent bea6af8 commit d7b00b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manifests/backports.pp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
Optional[Variant[String, Hash]] $key = undef,
Optional[Variant[Integer, String, Hash]] $pin = 200,
){

include apt

if $location {
$_location = $location
}
Expand Down

0 comments on commit d7b00b1

Please sign in to comment.