diff --git a/destination/destinations.go b/destination/destinations.go index 5ef5bc3..cad97f5 100644 --- a/destination/destinations.go +++ b/destination/destinations.go @@ -77,7 +77,7 @@ func GetRemote(esClient es.Client) (map[string]Destination, error) { } json.Unmarshal(parsedDestination, &destination) destination.ID = hit.(map[string]interface{})["_id"].(string) - allRemoteDestinationsMap[destination.Name] = destination + allRemoteDestinationsMap[strings.ToLower(strings.ReplaceAll(destination.Name, " ", "_"))] = destination } } return allRemoteDestinationsMap, nil