Skip to content

Commit

Permalink
huawei snapshot delete fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TangBin committed Sep 25, 2020
1 parent 4c05026 commit 999c315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/multicloud/huawei/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,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)
Expand Down

0 comments on commit 999c315

Please sign in to comment.