Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Fix cred process expiration (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
reegnz committed Oct 22, 2020
1 parent b957542 commit 7f92fc8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/cred-process.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ func credProcessRun(cmd *cobra.Command, args []string) error {
AccessKeyID: creds.AccessKeyID,
SecretAccessKey: creds.SecretAccessKey,
SessionToken: creds.SessionToken,
// reuse the provided session duration
Expiration: time.Now().Add(p.SessionDuration).Format(time.RFC3339),
Expiration: p.GetExpiration().Format(time.RFC3339),
}

var output []byte
Expand Down

0 comments on commit 7f92fc8

Please sign in to comment.