From d9f1fac36dc1319831657b3020833e4ee9673e73 Mon Sep 17 00:00:00 2001 From: jackgr Date: Tue, 29 Mar 2016 20:58:26 -0700 Subject: [PATCH] Fix client property parsing --- cmd/helm/properties.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/helm/properties.go b/cmd/helm/properties.go index 3e58352de..df8797f78 100644 --- a/cmd/helm/properties.go +++ b/cmd/helm/properties.go @@ -40,15 +40,15 @@ func parseProperties(kvstr string) (map[string]interface{}, error) { // Allow for "k=v, k=v" p = strings.TrimSpace(p) pair := strings.Split(p, "=") - if len(pair) == 1 { + if len(pair) < 2 { return properties, errInvalidProperty } // If the value looks int-like, convert it. if i, err := strconv.Atoi(pair[1]); err == nil { - properties[pair[0]] = pair[1] - } else { properties[pair[0]] = i + } else { + properties[pair[0]] = pair[1] } }