From 0587540feaf7a9afdbd1cb9b52ac4e7ae9adde3c Mon Sep 17 00:00:00 2001 From: Vishal Nayak Date: Wed, 7 Feb 2018 20:43:05 -0500 Subject: [PATCH] avoid masking of role tag response (#3941) --- builtin/credential/aws/path_login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/credential/aws/path_login.go b/builtin/credential/aws/path_login.go index 43ef00ba194c..40ceee9bdc39 100644 --- a/builtin/credential/aws/path_login.go +++ b/builtin/credential/aws/path_login.go @@ -682,7 +682,7 @@ func (b *backend) pathLoginUpdateEc2(ctx context.Context, req *logical.Request, rTagMaxTTL := time.Duration(0) var roleTagResp *roleTagLoginResponse if roleEntry.RoleTag != "" { - roleTagResp, err := b.handleRoleTagLogin(ctx, req.Storage, roleName, roleEntry, instance) + roleTagResp, err = b.handleRoleTagLogin(ctx, req.Storage, roleName, roleEntry, instance) if err != nil { return nil, err }