From c78c7f994c59639dc5bdd0ac5fa6f749f8697eeb Mon Sep 17 00:00:00 2001 From: Armin Wolfermann Date: Tue, 5 Apr 2016 15:24:24 +0200 Subject: [PATCH] ipmi_sensors: Allow : in password closes #969 --- CHANGELOG.md | 1 + plugins/inputs/ipmi_sensor/connection.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82a224f21..b7b327fde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Bugfixes - [#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] diff --git a/plugins/inputs/ipmi_sensor/connection.go b/plugins/inputs/ipmi_sensor/connection.go index 3f4461438..1e9bfbdcb 100644 --- a/plugins/inputs/ipmi_sensor/connection.go +++ b/plugins/inputs/ipmi_sensor/connection.go @@ -28,7 +28,7 @@ func NewConnection(server string) *Connection { if inx1 > 0 { security := server[0:inx1] connstr = server[inx1+1 : len(server)] - up := strings.Split(security, ":") + up := strings.SplitN(security, ":", 2) conn.Username = up[0] conn.Password = up[1] }