cmssczy commented on a change in pull request #888:
URL:
https://github.com/apache/apisix-ingress-controller/pull/888#discussion_r816394259
##########
File path: pkg/apisix/cluster.go
##########
@@ -750,10 +750,16 @@ func (c *cluster) getList(ctx context.Context, url,
resource string) ([]string,
return nil, err
}
- var listResponse []string
+ var listResponse map[string]interface{}
dec := json.NewDecoder(resp.Body)
if err := dec.Decode(&listResponse); err != nil {
return nil, err
}
- return listResponse, nil
+ var res []string = make([]string, len(listResponse))
Review comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]