Skip to content

Commit 1688c84

Browse files
authored
Merge pull request #6 from tencentcloudstack/fix/oauth-expired
fix: Modify expiration time judgment
2 parents e0e9b82 + 055b474 commit 1688c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/tencentcloud/cvm/oauth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func GetOauthConfig(p *Profile) error {
2626
now := time.Now()
2727
futureTime := now.Add(30 * time.Second)
2828
targetTime := time.Unix(p.Oauth.ExpiresAt, 0)
29-
if targetTime.After(futureTime) {
29+
if futureTime.After(targetTime) {
3030
expired = true
3131
}
3232
}

0 commit comments

Comments
 (0)