mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
细化存储信息
This commit is contained in:
@@ -55,7 +55,7 @@ func (region *SRegion) GetInstance(instanceId string) (*SInstance, error) {
|
||||
}
|
||||
return nil, cloudprovider.ErrNotFound
|
||||
}
|
||||
if len(instances) == 0 {
|
||||
if len(instances) == 0 || len(instanceId) == 0 {
|
||||
return nil, cloudprovider.ErrNotFound
|
||||
}
|
||||
return nil, cloudprovider.ErrDuplicateId
|
||||
|
||||
Reference in New Issue
Block a user