You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by de...@apache.org on 2018/06/13 14:06:53 UTC

[incubator-trafficcontrol] branch master updated: TO Go DS API: initialDispersion not required for DNS DSes

This is an automated email from the ASF dual-hosted git repository.

dewrich pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 5346d18  TO Go DS API: initialDispersion not required for DNS DSes
5346d18 is described below

commit 5346d185a359bdeafc2ed34515e36cf364056b99
Author: Rawlin Peters <ra...@comcast.com>
AuthorDate: Tue Jun 12 16:41:40 2018 -0600

    TO Go DS API: initialDispersion not required for DNS DSes
---
 traffic_ops/traffic_ops_golang/deliveryservice/deliveryservicesv12.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/traffic_ops/traffic_ops_golang/deliveryservice/deliveryservicesv12.go b/traffic_ops/traffic_ops_golang/deliveryservice/deliveryservicesv12.go
index 7184c71..1b95ce1 100644
--- a/traffic_ops/traffic_ops_golang/deliveryservice/deliveryservicesv12.go
+++ b/traffic_ops/traffic_ops_golang/deliveryservice/deliveryservicesv12.go
@@ -250,7 +250,7 @@ func validateTypeFields(db *sqlx.DB, ds *tc.DeliveryServiceNullableV12) []error
 
 	errs := validation.Errors{
 		"initialDispersion": validation.Validate(ds.InitialDispersion,
-			validation.By(requiredIfMatchesTypeName([]string{DNSRegexType, HTTPRegexType}, typeName))),
+			validation.By(requiredIfMatchesTypeName([]string{HTTPRegexType}, typeName))),
 		"ipv6RoutingEnabled": validation.Validate(ds.IPV6RoutingEnabled,
 			validation.By(requiredIfMatchesTypeName([]string{SteeringRegexType, DNSRegexType, HTTPRegexType}, typeName))),
 		"missLat": validation.Validate(ds.MissLat,

-- 
To stop receiving notification emails like this one, please contact
dewrich@apache.org.