Skip to content

Commit

Permalink
Do not ignore username option for mqtt output
Browse files Browse the repository at this point in the history
  • Loading branch information
msangoi authored and sparrc committed Mar 3, 2016
1 parent 8464be6 commit e5482a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- [#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!
- [#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

Expand Down
2 changes: 1 addition & 1 deletion plugins/outputs/mqtt/mqtt.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (m *MQTT) createOpts() (*paho.ClientOptions, error) {
}

user := m.Username
if user == "" {
if user != "" {
opts.SetUsername(user)
}
password := m.Password
Expand Down

0 comments on commit e5482a5

Please sign in to comment.