rimashah25 commented on a change in pull request #5064:
URL: https://github.com/apache/trafficcontrol/pull/5064#discussion_r497718666
##########
File path: traffic_ops/traffic_ops_golang/cdn/cdns.go
##########
@@ -136,6 +137,8 @@ func (cdn *TOCDN) Read(h http.Header, useIMS bool)
([]interface{}, error, error,
// sorting alphabetically by cdn name.
if _, ok := cdn.APIInfo().Params["orderby"]; !ok {
cdn.APIInfo().Params["orderby"] = "name"
+ } else {
+ return nil, fmt.Errorf("unable to sort the list"), nil,
http.StatusInternalServerError, nil
Review comment:
Resolved conversation based on offline chat.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]