From eb4a5c7a7d0c5ee95ed29c20cbbf2e382a37e2ef Mon Sep 17 00:00:00 2001 From: Evans Mungai Date: Thu, 14 Sep 2023 17:50:15 +0100 Subject: [PATCH] No traces on dry run --- cmd/troubleshoot/cli/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/troubleshoot/cli/root.go b/cmd/troubleshoot/cli/root.go index b1853d674..0b348bd9e 100644 --- a/cmd/troubleshoot/cli/root.go +++ b/cmd/troubleshoot/cli/root.go @@ -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()) }