MylesBock commented on a change in pull request #5312:
URL: https://github.com/apache/trafficcontrol/pull/5312#discussion_r527551932



##########
File path: traffic_ops/traffic_ops_golang/server/servers_assignment.go
##########
@@ -269,7 +277,9 @@ INSERT INTO deliveryservice_server (deliveryservice, server)
 
        //need remap config location
        var atsConfigLocation string
-       if err := tx.QueryRow("SELECT value FROM parameter WHERE name = 
'location' AND config_file = '" + atscfg.RemapFile + 
"'").Scan(&atsConfigLocation); err != nil {
+       if err := tx.QueryRow("SELECT value FROM parameter " +
+               "WHERE name = 'location'" +
+               " AND config_file = '" + RemapFile + 
"'").Scan(&atsConfigLocation); err != nil {

Review comment:
       I think it's a style guide thing I missed that they adhere to? Probably 
could be configured but this is a mostly stock installation




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