Skip to content

Commit

Permalink
fixing fields_under_root issue
Browse files Browse the repository at this point in the history
Unnecessary it statements which are preventing to add  'fields' 'and fields_under_root' to metricbeat configuration.
  • Loading branch information
sasubillis authored Jan 15, 2020
1 parent a2e93e9 commit 2afbe46
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@

# if fields are "under root", then remove prefix
if $metricbeat::fields_under_root == true {
if $metricbeat::fields_under_root == true {
$fields_tmp = $metricbeat::fields.each | $key, $value | { {$key => $value} }
} else {
$fields_tmp = $metricbeat::fields
}
} else {
$fields_tmp = $metricbeat::fields
}
Expand Down

0 comments on commit 2afbe46

Please sign in to comment.