From 95b1ea2c9995344f5dbb76eb5f00fdf8545963d6 Mon Sep 17 00:00:00 2001 From: Eimhin Laverty Date: Thu, 6 Dec 2018 13:41:08 +0000 Subject: [PATCH] (MODULES-8326) - apt-transport-https not ensured properly --- manifests/source.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/source.pp b/manifests/source.pp index 9c50f1a30d..3b0b06b3d5 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -88,7 +88,7 @@ } # Newer oses, do not need the package for HTTPS transport. $_transport_https_releases = [ 'wheezy', 'jessie', 'stretch', 'trusty', 'xenial' ] - if $_release in $_transport_https_releases and $location =~ /(?i:^https:\/\/)/ { + if ($_release in $_transport_https_releases or $facts['lsbdistcodename'] in $_transport_https_releases) and $location =~ /(?i:^https:\/\/)/ { ensure_packages('apt-transport-https') } }