Skip to content

Commit

Permalink
Adopt new parameter defaults in template
Browse files Browse the repository at this point in the history
the apt::pin define has switched from empty string to Undef.
But the template was not updated.

fixes puppetlabs#1089
  • Loading branch information
tuxmea committed Feb 8, 2023
1 parent 790df53 commit 355abd2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions templates/pin.pref.epp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
$pin =
if $pin_release != '' {
$options = [
if $release != '' { "a=${release}" },
if $codename != '' { "n=${codename}" },
if $release_version != '' { "v=${release_version}"},
if $component != '' { "c=${component}" },
if $originator != '' { "o=${originator}" },
if $label != '' { "l=${label}" },
unless $release =~ Undef { "a=${release}" },
unless $codename =~ Undef { "n=${codename}" },
unless $release_version =~ Undef { "v=${release_version}"},
unless $component =~ Undef { "c=${component}" },
unless $originator =~ Undef { "o=${originator}" },
unless $label =~ Undef { "l=${label}" },
].filter |$x| { $x != undef }
"release ${options.join(', ')}" }

Expand Down

0 comments on commit 355abd2

Please sign in to comment.