huawei snapshot delete fix

This commit is contained in:
TangBin
2020-09-27 15:13:16 +08:00
parent 6e61174307
commit ec7707d397
+1 -1
View File
@@ -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)