From: paladox Date: Tue, 15 May 2018 18:56:21 +0000 (+0100) Subject: Remove .length from variable $pin_release in app X-Git-Tag: 5.0.0~4^2~4 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=6ab8732c34e890051cced7db665e1e6f8499c0d8;p=puppet-modules%2Fpuppetlabs-apt.git Remove .length from variable $pin_release in app This causes Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown function: 'length'. at /etc/puppet/environments/production/modules/apt/templates/pin.pref.epp:4:16 at /etc/puppet/environments/production/modules/apt/manifests/source.pp:92 on node xxx downstream --- diff --git a/templates/pin.pref.epp b/templates/pin.pref.epp index 7991332..cb43bc0 100644 --- a/templates/pin.pref.epp +++ b/templates/pin.pref.epp @@ -1,7 +1,7 @@ <%- | $name, $pin_release, $release, $codename, $release_version, $component, $originator, $label, $version, $origin, $explanation, $packages_string, $priority | -%> <%- $pin = -if $pin_release.length > 0 { +if $pin_release { $options = [ if $release { "a=${release}" }, if $codename { "n=${codename}" },