fix(cmd): Also allow 0 outputs when using test-wait parameter (#11013)
This commit is contained in:
parent
5c98cb2aad
commit
da31a19d5b
|
|
@ -232,7 +232,7 @@ func runAgent(ctx context.Context,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !*fTest && len(c.Outputs) == 0 {
|
if !(*fTest || *fTestWait != 0) && len(c.Outputs) == 0 {
|
||||||
return errors.New("Error: no outputs found, did you provide a valid config file?")
|
return errors.New("Error: no outputs found, did you provide a valid config file?")
|
||||||
}
|
}
|
||||||
if *fPlugins == "" && len(c.Inputs) == 0 {
|
if *fPlugins == "" && len(c.Inputs) == 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue