dangogh closed pull request #2469: Fix Go TO "GET
/server/{id}/deliveryservices" endpoint
URL: https://github.com/apache/trafficcontrol/pull/2469
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/traffic_ops/traffic_ops_golang/deliveryservice/servers/servers.go
b/traffic_ops/traffic_ops_golang/deliveryservice/servers/servers.go
index f6bb1bdef..a65fd3fef 100644
--- a/traffic_ops/traffic_ops_golang/deliveryservice/servers/servers.go
+++ b/traffic_ops/traffic_ops_golang/deliveryservice/servers/servers.go
@@ -791,7 +791,10 @@ func SDSSelectQuery() string {
miss_long,
multi_site_origin,
multi_site_origin_algorithm,
- org_server_fqdn,
+ (SELECT o.protocol::text || '://' || o.fqdn ||
rtrim(concat(':', o.port::text), ':')
+ FROM origin o
+ WHERE o.deliveryservice = d.id
+ AND o.is_primary) as org_server_fqdn,
origin_shield,
profile,
protocol,
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services