Skip to content

Commit 055b474

Browse files
committed
fix: Modify expiration time judgment
1 parent e0e9b82 commit 055b474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/tencentcloud/cvm/oauth.go

Lines changed: 1 addition & 1 deletion
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)