fix: ensure vector component sources have valid names

The dot (.) character is invalid.

Closes #5044
This commit is contained in:
Jose Diaz-Gonzalez
2022-02-27 18:20:44 -05:00
parent 860f4f458c
commit 2a02aa0b9b
2 changed files with 11 additions and 0 deletions

View File

@@ -167,6 +167,7 @@ func writeVectorConfig() error {
continue
}
appName = strings.ReplaceAll(appName, ".", "-")
sink, err := sinkValueToConfig(appName, value)
if err != nil {
return err