细化存储信息

This commit is contained in:
ioito
2019-05-21 21:29:05 +08:00
parent d2c9c7d740
commit 746a7d424e
32 changed files with 1152 additions and 357 deletions
+1 -1
View File
@@ -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