Skip to content

Commit 2afbe46

Browse files
author
Sreenu Sasubilli
authored
fixing fields_under_root issue
Unnecessary it statements which are preventing to add 'fields' 'and fields_under_root' to metricbeat configuration.
1 parent a2e93e9 commit 2afbe46

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

manifests/config.pp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515

1616
# if fields are "under root", then remove prefix
1717
if $metricbeat::fields_under_root == true {
18-
if $metricbeat::fields_under_root == true {
1918
$fields_tmp = $metricbeat::fields.each | $key, $value | { {$key => $value} }
20-
} else {
21-
$fields_tmp = $metricbeat::fields
22-
}
2319
} else {
2420
$fields_tmp = $metricbeat::fields
2521
}

0 commit comments

Comments
 (0)