mitchell852 commented on a change in pull request #5128:
URL: https://github.com/apache/trafficcontrol/pull/5128#discussion_r504988536



##########
File path: traffic_ops/traffic_ops_golang/server/servers.go
##########
@@ -976,8 +981,13 @@ func getServers(h http.Header, params map[string]string, 
tx *sqlx.Tx, user *auth
        }
 
        returnable := make([]tc.ServerNullable, 0, len(ids))
+
        for _, id := range ids {
                server := servers[id]
+               // if requesting servers for a given ds, need to only include 
those in the same cdn
+               if len(dsCDNName) > 0 && string(dsCDNName) != *server.CDNName {
+                       continue
+               }

Review comment:
       @zrhoffman - updated. how's that look?




----------------------------------------------------------------
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]


Reply via email to