Do not ignore username option for mqtt output
This commit is contained in:
parent
8464be691e
commit
e5482a5725
|
@ -13,6 +13,7 @@
|
||||||
- [#722](https://github.com/influxdata/telegraf/pull/722): Librato output plugin fixes. Thanks @chrusty!
|
- [#722](https://github.com/influxdata/telegraf/pull/722): Librato output plugin fixes. Thanks @chrusty!
|
||||||
- [#745](https://github.com/influxdata/telegraf/issues/745): Fix Telegraf toml parse panic on large config files. Thanks @titilambert!
|
- [#745](https://github.com/influxdata/telegraf/issues/745): Fix Telegraf toml parse panic on large config files. Thanks @titilambert!
|
||||||
- [#781](https://github.com/influxdata/telegraf/pull/781): Fix mqtt_consumer username not being set. Thanks @chaton78!
|
- [#781](https://github.com/influxdata/telegraf/pull/781): Fix mqtt_consumer username not being set. Thanks @chaton78!
|
||||||
|
- [#786](https://github.com/influxdata/telegraf/pull/786): Fix mqtt output username not being set. Thanks @msangoi!
|
||||||
|
|
||||||
## v0.10.4.1
|
## v0.10.4.1
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,7 @@ func (m *MQTT) createOpts() (*paho.ClientOptions, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
user := m.Username
|
user := m.Username
|
||||||
if user == "" {
|
if user != "" {
|
||||||
opts.SetUsername(user)
|
opts.SetUsername(user)
|
||||||
}
|
}
|
||||||
password := m.Password
|
password := m.Password
|
||||||
|
|
Loading…
Reference in New Issue