mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
主机删除问题修复
This commit is contained in:
@@ -415,8 +415,11 @@ func (self *SRegion) GetInstances(zoneId string, ids []string, offset int, limit
|
||||
log.Debugf("GetInstances with params: %s", params.String())
|
||||
res, err := self.ec2Client.DescribeInstances(params)
|
||||
if err != nil {
|
||||
log.Errorf("GetInstances fail %s", err)
|
||||
return nil, 0, err
|
||||
if strings.Contains(err.Error(), "InvalidInstanceID.NotFound") {
|
||||
return nil, 0, cloudprovider.ErrNotFound
|
||||
} else {
|
||||
return nil, 0, err
|
||||
}
|
||||
}
|
||||
|
||||
instances := []SInstance{}
|
||||
|
||||
Reference in New Issue
Block a user