mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): hcso sync server fix
This commit is contained in:
@@ -774,6 +774,9 @@ func (self *SRegion) GetInstances() ([]SInstance, error) {
|
||||
func (self *SRegion) GetInstanceByID(instanceId string) (SInstance, error) {
|
||||
instance := SInstance{}
|
||||
err := DoGet(self.ecsClient.Servers.Get, instanceId, nil, &instance)
|
||||
if instance.Status == "DELETED" {
|
||||
return instance, errors.Wrap(cloudprovider.ErrNotFound, "GetInstanceByID")
|
||||
}
|
||||
return instance, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user