update run.go

This commit is contained in:
Diamon Wiggins
2022-09-14 00:57:33 -04:00
parent e7fe012f2f
commit 126346e1fe

View File

@@ -38,7 +38,7 @@ const (
)
func runTroubleshoot(v *viper.Viper, arg []string) error {
if v.GetBool("load-cluster-specs") == false && len(arg) == 0 {
if v.GetBool("load-cluster-specs") == false && len(arg) < 1 {
return errors.New("flag load-cluster-specs must be set if no specs are provided on the command line")
}