Skip to content

Commit 633f842

Browse files
committed
Replace dot by an underscore in dynamic template names
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.
1 parent a46de7b commit 633f842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/builder/dynamic_mappings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func renameMappingsNames(doc *yaml.Node) {
169169
switch doc.Kind {
170170
case yaml.MappingNode:
171171
for i := 0; i < len(doc.Content); i += 2 {
172-
doc.Content[i].Value = fmt.Sprintf("%s.%s", prefixMapping, doc.Content[i].Value)
172+
doc.Content[i].Value = fmt.Sprintf("%s_%s", prefixMapping, doc.Content[i].Value)
173173
}
174174
case yaml.SequenceNode:
175175
for i := 0; i < len(doc.Content); i++ {

0 commit comments

Comments
 (0)