Skip to content

Commit

Permalink
Update manifests/config.pp
Browse files Browse the repository at this point in the history
Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
  • Loading branch information
voxel01 and ekohl authored Nov 24, 2023
1 parent f012510 commit a0685d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@
}

$otelcol::processors.each|String $rname, Hash $rvalue| {
if($rvalue['config'] and $rvalue['config'].is_a(Hash)) {
if $rvalue['config'] =~ Hash {
ensure_resource('otelcol::processor', $rname, $rvalue)
}
else {
} else {
ensure_resource('otelcol::processor', $rname, { 'config' => $rvalue })
}
}
Expand Down

0 comments on commit a0685d9

Please sign in to comment.