ipmi_sensors: Allow : in password

closes #969
This commit is contained in:
Armin Wolfermann 2016-04-05 15:24:24 +02:00 committed by Michele Fadda
parent c846610391
commit c78c7f994c
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
### Bugfixes ### Bugfixes
- [#968](https://github.com/influxdata/telegraf/issues/968): Processes plugin gets unknown state when spaces are in (command name) - [#968](https://github.com/influxdata/telegraf/issues/968): Processes plugin gets unknown state when spaces are in (command name)
- [#969](https://github.com/influxdata/telegraf/issues/968): ipmi_sensors: allow : in password. Thanks @awaw!
## v0.12.0 [2016-04-05] ## v0.12.0 [2016-04-05]

View File

@ -28,7 +28,7 @@ func NewConnection(server string) *Connection {
if inx1 > 0 { if inx1 > 0 {
security := server[0:inx1] security := server[0:inx1]
connstr = server[inx1+1 : len(server)] connstr = server[inx1+1 : len(server)]
up := strings.Split(security, ":") up := strings.SplitN(security, ":", 2)
conn.Username = up[0] conn.Username = up[0]
conn.Password = up[1] conn.Password = up[1]
} }