Skip to content

Commit 405e7cd

Browse files
Fix the nested ChainableRamRoleArn error (#1217)
1 parent 47e0317 commit 405e7cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/profile.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ func (cp *Profile) GetCredential(ctx *cli.Context, proxyHost *string) (cred cred
347347
err = fmt.Errorf("can not load the source profile: " + profileName)
348348
return
349349
}
350+
source.parent = cp.parent
351+
source.parent.CurrentProfile = profileName
350352

351353
middle, err2 := source.GetCredential(ctx, proxyHost)
352354
if err2 != nil {

0 commit comments

Comments
 (0)