Do not ignore username option for mqtt output

This commit is contained in:
Manuel Sangoi
2016-03-03 14:14:50 +01:00
committed by Cameron Sparr
parent 8464be691e
commit e5482a5725
2 changed files with 2 additions and 1 deletions

View File

@@ -172,7 +172,7 @@ func (m *MQTT) createOpts() (*paho.ClientOptions, error) {
}
user := m.Username
if user == "" {
if user != "" {
opts.SetUsername(user)
}
password := m.Password