Skip to content

Commit

Permalink
simplify is statement
Browse files Browse the repository at this point in the history
  • Loading branch information
n0npax committed May 28, 2023
1 parent 87cef38 commit 1668461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func addExternalNetwork(filePath string) error {
name, _ := nAny.(string)
// inject o11y network only to otel-collector and tempo service.
// other services like mini-o11y-stack, grafana, etc. should not be exposed.
if slices.Contains([]string{"otel-collector"}, name) || slices.Contains([]string{"tempo"}, name) {
if slices.Contains([]string{"otel-collector", "tempo"}, name) {
service["networks"] = []string{"o11y", "default"}
}
}
Expand Down

0 comments on commit 1668461

Please sign in to comment.