Feature #1820: add testing without outputs (#2446)

This commit is contained in:
ingosus 2017-04-13 22:59:28 +03:00 committed by Daniel Nelson
parent 45c9b867f6
commit dff216c44d
2 changed files with 2 additions and 1 deletions

View File

@ -68,6 +68,7 @@ be deprecated eventually.
- [#2637](https://github.com/influxdata/telegraf/issues/2637): Add support for precision in http_listener
- [#2636](https://github.com/influxdata/telegraf/pull/2636): Add `message_len_max` option to `kafka_consumer` input
- [#1100](https://github.com/influxdata/telegraf/issues/1100): Add collectd parser
- [#1820](https://github.com/influxdata/telegraf/issues/1820): easier plugin testing without outputs
### Bugfixes

View File

@ -144,7 +144,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 {