Skip to content

Commit 19ee136

Browse files
committed
fix token generation due to tricky golang issue
1 parent 3f70981 commit 19ee136

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/token.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ func (params *TokenParams) ToKmsContext() map[string]*string {
8080

8181
if len(params.Principals) > 0 {
8282
for i, principal := range params.Principals {
83+
principal := principal
8384
key := fmt.Sprintf("principal-%d", i)
8485
context[key] = &principal
8586
}

0 commit comments

Comments
 (0)