X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fsource.pp;h=981933d0c21ce4d7b1b8664fa5f47b75d038c79f;hb=65904b214d98c899f390ac6908322fc06e3aca13;hp=724f5f36d3417b9f1503e5321a86704f89db11e6;hpb=59b969bf64d7c473d711eef9e21934b5617e047f;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/source.pp b/manifests/source.pp index 724f5f3..981933d 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -22,7 +22,7 @@ define apt::source( if $facts['lsbdistcodename'] { $_release = $facts['lsbdistcodename'] } else { - fail('lsbdistcodename fact not available: release parameter required') + fail(translate('lsbdistcodename fact not available: release parameter required')) } } else { $_release = $release @@ -30,7 +30,7 @@ define apt::source( if $ensure == 'present' { if ! $location { - fail('cannot create a source entry without specifying a location') + fail(translate('cannot create a source entry without specifying a location')) } # Newer oses, do not need the package for HTTPS transport. $_transport_https_releases = [ 'wheezy', 'jessie', 'stretch', 'trusty', 'xenial' ] @@ -44,7 +44,7 @@ define apt::source( if $key { if $key =~ Hash { unless $key['id'] { - fail('key hash must contain at least an id entry') + fail(translate('key hash must contain at least an id entry')) } $_key = merge($::apt::source_key_defaults, $key) } else { @@ -83,7 +83,7 @@ define apt::source( 'origin' => $host, } } else { - fail('Received invalid value for pin parameter') + fail(translate('Received invalid value for pin parameter')) } create_resources('apt::pin', { "${name}" => $_pin }) }