(maint) - add back gems removed by pdk update
[puppet-modules/puppetlabs-apt.git] / manifests / source.pp
index 9c50f1a30dfb1a0dd75cf58e527488de92d205dc..cb75635797ca882832467d64be7d8228b86765aa 100644 (file)
@@ -88,7 +88,7 @@ define apt::source(
     }
     # 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 ($facts['lsbdistcodename'] in $_transport_https_releases) and $location =~ /(?i:^https:\/\/)/ {
       ensure_packages('apt-transport-https')
     }
   }