Skip to content

Commit 59a29ac

Browse files
authored
Merge pull request #31 from joicemjoseph/hotfix/iam-imds2-token-renewal
hotfix: corrects renewal logic
2 parents da71747 + 8506229 commit 59a29ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

simples3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ func (s3 *S3) renewIAMToken() error {
426426
return nil
427427
}
428428

429-
if time.Since(s3.expiry) > 0 {
429+
if time.Since(s3.expiry) < 0 {
430430
return nil
431431
}
432432

0 commit comments

Comments
 (0)