X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fsource.pp;h=2386c0a5f3b2eae05fdff5d1864f1e78cc0023a9;hb=refs%2Fheads%2Frelease-prep;hp=420d19d451e312bcc52144246bf2f1374d1b0158;hpb=ce09f18e453def8ed99690bbd56afdb6c96d2b4c;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/source.pp b/manifests/source.pp index 420d19d..2386c0a 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -107,14 +107,14 @@ define apt::source ( # Newer oses, do not need the package for HTTPS transport. $_transport_https_releases = ['9'] if (fact('os.release.major') in $_transport_https_releases) and $_location =~ /(?i:^https:\/\/)/ { - ensure_packages('apt-transport-https') + stdlib::ensure_packages('apt-transport-https') Package['apt-transport-https'] -> Class['apt::update'] } } else { $_location = undef } - $includes = merge($apt::include_defaults, $include) + $includes = $apt::include_defaults + $include if $key and $keyring { fail('parameters key and keyring are mutualy exclusive') @@ -125,7 +125,7 @@ define apt::source ( unless $key['id'] { fail('key hash must contain at least an id entry') } - $_key = merge($apt::source_key_defaults, $key) + $_key = $apt::source_key_defaults + $key } else { $_key = { 'id' => assert_type(String[1], $key) } } @@ -164,7 +164,7 @@ define apt::source ( if $pin { if $pin =~ Hash { - $_pin = merge($pin, { 'ensure' => $ensure, 'before' => $_before }) + $_pin = $pin + { 'ensure' => $ensure, 'before' => $_before } } elsif ($pin =~ Numeric or $pin =~ String) { $url_split = split($location, '[:\/]+') $host = $url_split[1]