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/07/24 14:51:11 UTC

[GitHub] mitchell852 closed pull request #2577: Make anonymousBlockingEnabled an optional field in the DS API

mitchell852 closed pull request #2577: Make anonymousBlockingEnabled an optional field in the DS API
URL: https://github.com/apache/trafficcontrol/pull/2577
 
 
   

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/lib/go-tc/deliveryservices.go b/lib/go-tc/deliveryservices.go
index 1a5d1e4fa..384cffb31 100644
--- a/lib/go-tc/deliveryservices.go
+++ b/lib/go-tc/deliveryservices.go
@@ -239,6 +239,9 @@ func (ds *DeliveryServiceNullableV12) Sanitize() {
 	if ds.RoutingName == nil || *ds.RoutingName == "" {
 		ds.RoutingName = util.StrPtr(DefaultRoutingName)
 	}
+	if ds.AnonymousBlockingEnabled == nil {
+		ds.AnonymousBlockingEnabled = util.BoolPtr(false)
+	}
 }
 
 // getTypeData returns the type's name and use_in_table, true/false if the query returned data, and any 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