X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fsource.pp;h=c70a8cc66e2e67eabedbcc50b5a8f72f359ba50c;hb=cea73db7792c92fef0915ddcb7e5b72ee360525c;hp=9adf6a2336ee764db234216e1cf0b20b413ef48a;hpb=2298cb2b473a1d554abd343ad18943d1a879d500;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/source.pp b/manifests/source.pp index 9adf6a2..c70a8cc 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -124,8 +124,8 @@ define apt::source( if is_hash($pin) { $_pin = merge($pin, { 'ensure' => $ensure, 'before' => $_before }) } elsif (is_numeric($pin) or is_string($pin)) { - $url_split = split($location, '/') - $host = $url_split[2] + $url_split = split($location, '[:\/]+') + $host = $url_split[1] $_pin = { 'ensure' => $ensure, 'priority' => $pin,