diff --git a/pkg/compute/models/guests.go b/pkg/compute/models/guests.go index c9924897e5..b7bb17525e 100644 --- a/pkg/compute/models/guests.go +++ b/pkg/compute/models/guests.go @@ -2905,23 +2905,13 @@ func (self *SGuest) syncWithCloudVM(ctx context.Context, userCred mcclient.Token self.IsEmulated = extVM.IsEmulated() - if provider.GetFactory().IsSupportPrepaidResources() && !recycle && - !extVM.GetExpiredAt().IsZero() { - + if provider.GetFactory().IsSupportPrepaidResources() && !recycle { self.BillingType = extVM.GetBillingType() self.ExpiredAt = extVM.GetExpiredAt() if self.GetDriver().IsSupportSetAutoRenew() { self.AutoRenew = extVM.IsAutoRenew() } } - - // no need to sync CreatedAt - // if !recycle { - // if createdAt := extVM.GetCreatedAt(); !createdAt.IsZero() { - // self.CreatedAt = createdAt - // } - // } - return nil }) if err != nil {