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 GH-1274
  • Loading branch information
SaschaDoering committed Nov 28, 2018
1 parent ae2af80 commit 5f9f9e4
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 5f9f9e4

Please sign in to comment.