include module apt in backports
authorSascha Rüssel <ruessel@synyx.de>
Wed, 6 Nov 2019 13:47:19 +0000 (14:47 +0100)
committerSascha 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

index 0fa69586e78089a3e38a867b59b2e4ffcc0be79c..1b9cabbaf10ff062d868f86f4dd6331380ee5b4b 100644 (file)
@@ -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
   }