From d7b00b12480a48128159e0dd8aa4f2ae3b6f8fd6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sascha=20R=C3=BCssel?= Date: Wed, 6 Nov 2019 14:47:19 +0100 Subject: [PATCH] include module apt in backports MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifests/backports.pp b/manifests/backports.pp index 0fa6958..1b9cabb 100644 --- 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 } -- 2.32.3