mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-02-14 18:29:53 +00:00
add handling for when no collectors or host collectors are specified
This commit is contained in:
@@ -165,7 +165,9 @@ func runTroubleshoot(v *viper.Viper, arg []string) error {
|
||||
}
|
||||
|
||||
if mainBundle == nil {
|
||||
return errors.New("no specs provided to run")
|
||||
return errors.New("no support bundle specs provided to run")
|
||||
} else if mainBundle.Spec.Collectors == nil && mainBundle.Spec.HostCollectors == nil {
|
||||
return errors.New("no collectors specified in support bundle")
|
||||
}
|
||||
|
||||
for idx, redactor := range v.GetStringSlice("redactors") {
|
||||
|
||||
Reference in New Issue
Block a user