Skip to content

Commit

Permalink
Fix golang GET deliveryservices by server endpoint
Browse files Browse the repository at this point in the history
Recently, the org_server_fqdn column in the deliveryservice table was
removed and replaced to use the origin table instead. Correct the SELECT
query to use the origin table.

Fixes #2467
  • Loading branch information
Rawlin Peters authored and dangogh committed Jun 26, 2018
1 parent c6e31b0 commit 247a8c3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 247a8c3

Please sign in to comment.