Skip to content

Commit

Permalink
No traces on dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
banjoh committed Sep 14, 2023
1 parent 34e12af commit eb4a5c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/troubleshoot/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ from a server that can be used to assist when troubleshooting a Kubernetes clust
}

err = runTroubleshoot(v, args)
if v.GetBool("debug") || v.IsSet("v") {
if !v.IsSet("dry-run") && (v.GetBool("debug") || v.IsSet("v")) {
fmt.Printf("\n%s", traces.GetExporterInstance().GetSummary())
}

Expand Down

0 comments on commit eb4a5c7

Please sign in to comment.