You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2018/06/20 20:27:52 UTC
[GitHub] rob05c closed pull request #2437: Fix TO Go CRConfig generation to
ignore active ANY_MAP DSes
rob05c closed pull request #2437: Fix TO Go CRConfig generation to ignore active ANY_MAP DSes
URL: https://github.com/apache/trafficcontrol/pull/2437
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/crconfig/deliveryservice.go b/traffic_ops/traffic_ops_golang/crconfig/deliveryservice.go
index d9b2e551e..5ec1e668a 100644
--- a/traffic_ops/traffic_ops_golang/crconfig/deliveryservice.go
+++ b/traffic_ops/traffic_ops_golang/crconfig/deliveryservice.go
@@ -22,6 +22,7 @@ package crconfig
import (
"database/sql"
"errors"
+ "fmt"
"strconv"
"strings"
"time"
@@ -77,6 +78,7 @@ left outer join profile as p on p.id = d.profile
where d.cdn_id = (select id from cdn where name = $1)
and d.active = true
`
+ q += fmt.Sprintf(" and t.name != '%s'", tc.DSTypeAnyMap)
rows, err := db.Query(q, cdn)
if err != nil {
return nil, errors.New("querying deliveryservices: " + err.Error())
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services