Skip to content

Commit

Permalink
fix token generation due to tricky golang issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aidansteele committed Feb 13, 2018
1 parent 3f70981 commit 19ee136
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func (params *TokenParams) ToKmsContext() map[string]*string {

if len(params.Principals) > 0 {
for i, principal := range params.Principals {
principal := principal
key := fmt.Sprintf("principal-%d", i)
context[key] = &principal
}
Expand Down

0 comments on commit 19ee136

Please sign in to comment.