mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix: cloud account queued sync_status is overried as idle
This commit is contained in:
@@ -1273,6 +1273,10 @@ func (self *SCloudaccount) StartCloudaccountDeleteTask(ctx context.Context, user
|
||||
}
|
||||
|
||||
func (self *SCloudaccount) getSyncStatus() string {
|
||||
if self.SyncStatus == api.CLOUD_PROVIDER_SYNC_STATUS_QUEUED {
|
||||
return self.SyncStatus
|
||||
}
|
||||
|
||||
cprs := CloudproviderRegionManager.Query().SubQuery()
|
||||
providers := CloudproviderManager.Query().SubQuery()
|
||||
|
||||
|
||||
@@ -3192,7 +3192,7 @@ func (self *SHost) Attach2Network(ctx context.Context, userCred mcclient.TokenCr
|
||||
return err
|
||||
}
|
||||
if len(ipAddr) > 0 && ipAddr != freeIp && requireDesignatedIp {
|
||||
return fmt.Errorf("IP address %s is occupied", ipAddr)
|
||||
return fmt.Errorf("IP address %s is occupied, get %s instead", ipAddr, freeIp)
|
||||
}
|
||||
bn := &SHostnetwork{}
|
||||
bn.BaremetalId = self.Id
|
||||
|
||||
Reference in New Issue
Block a user