Merge pull request #31 from joicemjoseph/hotfix/iam-imds2-token-renewal
hotfix: corrects renewal logic
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user