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

Commit 7f92fc8

Browse files
authored
Fix cred process expiration (#303)
1 parent b957542 commit 7f92fc8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/cred-process.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ func credProcessRun(cmd *cobra.Command, args []string) error {
122122
AccessKeyID: creds.AccessKeyID,
123123
SecretAccessKey: creds.SecretAccessKey,
124124
SessionToken: creds.SessionToken,
125-
// reuse the provided session duration
126-
Expiration: time.Now().Add(p.SessionDuration).Format(time.RFC3339),
125+
Expiration: p.GetExpiration().Format(time.RFC3339),
127126
}
128127

129128
var output []byte

0 commit comments

Comments
 (0)