mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-30 18:23:35 +08:00
Merge pull request #12130 from tb365/bugfix/tb-bugfix-090801
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