Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
banjoh committed Sep 22, 2023
1 parent bfc6e4f commit d9269e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/troubleshoot/cli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit d9269e2

Please sign in to comment.