From 7951455a00427c134f36c4a199a9523d6d99abfd Mon Sep 17 00:00:00 2001 From: Armin Wolfermann Date: Tue, 5 Apr 2016 15:24:24 +0200 Subject: [PATCH] Allow : in password --- plugins/inputs/ipmi_sensor/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] }