Skip to content

Commit

Permalink
fix(cmd): Also allow 0 outputs when using test-wait parameter (#11013)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hipska committed Apr 21, 2022
1 parent 5c98cb2 commit da31a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/telegraf/telegraf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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?")
}
if *fPlugins == "" && len(c.Inputs) == 0 {
Expand Down

0 comments on commit da31a19

Please sign in to comment.