From 3e3043adf431dc7e2d1c8198ee8077cff7dfb0d5 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Thu, 8 Sep 2016 11:46:18 +0100 Subject: [PATCH] provider/aws: Prevent crash on account ID validation --- builtin/providers/aws/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/config.go b/builtin/providers/aws/config.go index 6ae8a254b7..952fe7ac6b 100644 --- a/builtin/providers/aws/config.go +++ b/builtin/providers/aws/config.go @@ -232,7 +232,7 @@ func (c *Config) Client() (interface{}, error) { authErr := c.ValidateAccountId(client.accountid) if authErr != nil { - return nil, err + return nil, authErr } client.apigateway = apigateway.New(sess)