Skip to content

Commit

Permalink
Fix the condition for upstream members
Browse files Browse the repository at this point in the history
The condition which decides if we have upstream members configurred or
if we import from PuppetDB was wrong. Even if no upstream members are
defined the condition was true.

Fixes voxpupuliGH-1274

(cherry picked from commit 30bd2a7 on
syseleven/1274_fix_upstream_member_condition)
  • Loading branch information
SaschaDoering authored and crispygoth committed Nov 14, 2018
1 parent 850753c commit a5cd9ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/resource/upstream.pp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
}),
}

if $members != undef {
if ! empty($members) {
$members.each |$member,$values| {
$member_values = merge($member_defaults,$values,{'upstream' => $name,'context' => $context})

Expand Down

0 comments on commit a5cd9ee

Please sign in to comment.