Merge pull request #31 from joicemjoseph/hotfix/iam-imds2-token-renewal

hotfix: corrects renewal logic
This commit is contained in:
Rohan Verma
2025-06-04 15:20:20 +05:30
committed by GitHub
+1 -1
View File
@@ -426,7 +426,7 @@ func (s3 *S3) renewIAMToken() error {
return nil
}
if time.Since(s3.expiry) > 0 {
if time.Since(s3.expiry) < 0 {
return nil
}