Skip to content

Commit

Permalink
Feature influxdata#1820: add testing without outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ingosus committed Feb 20, 2017
1 parent e17164d commit 5de59ea
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 @@ -136,7 +136,7 @@ func reloadLoop(
log.Fatal("E! " + err.Error())
}
}
if len(c.Outputs) == 0 {
if !*fTest && len(c.Outputs) == 0 {
log.Fatalf("E! Error: no outputs found, did you provide a valid config file?")
}
if len(c.Inputs) == 0 {
Expand Down

0 comments on commit 5de59ea

Please sign in to comment.