mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
huawei snapshot delete fix
This commit is contained in:
@@ -180,7 +180,7 @@ func doListPart(doList listFunc, queries map[string]string, result interface{})
|
||||
func DoGet(doGet getFunc, id string, queries map[string]string, result interface{}) error {
|
||||
if len(id) == 0 {
|
||||
resultType := reflect.Indirect(reflect.ValueOf(result)).Type()
|
||||
return fmt.Errorf(" Get %s id should not be empty", resultType.Name())
|
||||
return errors.Wrap(cloudprovider.ErrNotFound, fmt.Sprintf(" Get %s id should not be empty", resultType.Name()))
|
||||
}
|
||||
|
||||
ret, err := doGet(id, queries)
|
||||
|
||||
Reference in New Issue
Block a user