From d9269e28512529d689eb448c006a6b9f01fe2062 Mon Sep 17 00:00:00 2001 From: Evans Mungai Date: Fri, 22 Sep 2023 18:36:26 +0100 Subject: [PATCH] Fix failing tests --- cmd/troubleshoot/cli/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/troubleshoot/cli/run.go b/cmd/troubleshoot/cli/run.go index b06a21d85..528ba0aaa 100644 --- a/cmd/troubleshoot/cli/run.go +++ b/cmd/troubleshoot/cli/run.go @@ -75,7 +75,7 @@ func runTroubleshoot(v *viper.Viper, args []string) error { } // Check if we have any collectors to run in the support bundle specs - if len(mainBundle.Spec.Collectors) == 0 || len(mainBundle.Spec.HostCollectors) == 0 { + if len(mainBundle.Spec.Collectors) == 0 && len(mainBundle.Spec.HostCollectors) == 0 { return errors.New("no collectors specified to run") }