Skip to content

Commit

Permalink
lower case name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kusha Gharahi committed Sep 4, 2020
1 parent 3a98b2b commit 957dfa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion destination/destinations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 957dfa0

Please sign in to comment.