Skip to content

Commit

Permalink
Replace dot by an underscore in dynamic template names
Browse files Browse the repository at this point in the history
In kibana versions < 8.6.0 the dot in the names caused that
packages were not installed. It was interpreted that the string
after the dot was an element of the map, causing validation
errors.
  • Loading branch information
mrodm committed Dec 22, 2022
1 parent a46de7b commit 633f842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/builder/dynamic_mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func renameMappingsNames(doc *yaml.Node) {
switch doc.Kind {
case yaml.MappingNode:
for i := 0; i < len(doc.Content); i += 2 {
doc.Content[i].Value = fmt.Sprintf("%s.%s", prefixMapping, doc.Content[i].Value)
doc.Content[i].Value = fmt.Sprintf("%s_%s", prefixMapping, doc.Content[i].Value)
}
case yaml.SequenceNode:
for i := 0; i < len(doc.Content); i++ {
Expand Down

0 comments on commit 633f842

Please sign in to comment.