From f5b3e0c558d9142929c288e6c294092b0ad6a277 Mon Sep 17 00:00:00 2001 From: clint shryock Date: Wed, 4 Jan 2017 14:05:42 -0600 Subject: [PATCH] provider/aws: Adjust User-Agent header --- builtin/providers/aws/config.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/builtin/providers/aws/config.go b/builtin/providers/aws/config.go index b703a6780..1cfda12b7 100644 --- a/builtin/providers/aws/config.go +++ b/builtin/providers/aws/config.go @@ -225,10 +225,7 @@ func (c *Config) Client() (interface{}, error) { return nil, errwrap.Wrapf("Error creating AWS session: {{err}}", err) } - // Removes the SDK Version handler, so we only have the provider User-Agent - // Ex: "User-Agent: APN/1.0 HashiCorp/1.0 Terraform/0.7.9-dev" - sess.Handlers.Build.Remove(request.NamedHandler{Name: "core.SDKVersionUserAgentHandler"}) - sess.Handlers.Build.PushFrontNamed(addTerraformVersionToUserAgent) + sess.Handlers.Build.PushBackNamed(addTerraformVersionToUserAgent) if extraDebug := os.Getenv("TERRAFORM_AWS_AUTHFAILURE_DEBUG"); extraDebug != "" { sess.Handlers.UnmarshalError.PushFrontNamed(debugAuthFailure)