From 2b601558f505edebe6c8ccf36827b013ff97d47e Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Wed, 16 Mar 2016 00:42:28 -0600 Subject: [PATCH] fix(client): use build version in user-agent --- pkg/client/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/client/client.go b/pkg/client/client.go index 4e5452d6a..7c16b9782 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -32,6 +32,7 @@ import ( "github.com/ghodss/yaml" "github.com/kubernetes/helm/pkg/common" + "github.com/kubernetes/helm/pkg/version" ) // DefaultHTTPTimeout is the default HTTP timeout. @@ -100,7 +101,7 @@ func (c *Client) url(rawurl string) (string, error) { } func (c *Client) agent() string { - return fmt.Sprintf("helm/%s", "0.0.1") + return fmt.Sprintf("helm/%s", version.Version) } // CallService is a low-level function for making an API call.