trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dewr...@apache.org
Subject [2/4] incubator-trafficcontrol git commit: Fixes the ability to add a DS without a profile. This fixes TC-256
Date Tue, 02 May 2017 17:21:45 GMT
Fixes the ability to add a DS without a profile.  This fixes TC-256


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/696aed4f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/696aed4f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/696aed4f

Branch: refs/heads/master
Commit: 696aed4f09d0d322524b56e03abb0d7a80b8d7a4
Parents: 3c430d6
Author: David Neuman <david.neuman64@gmail.com>
Authored: Wed Apr 26 13:10:04 2017 -0600
Committer: Dewayne Richardson <dewrich@apache.org>
Committed: Tue May 2 11:20:57 2017 -0600

----------------------------------------------------------------------
 traffic_ops/app/lib/UI/DeliveryService.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/696aed4f/traffic_ops/app/lib/UI/DeliveryService.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/UI/DeliveryService.pm b/traffic_ops/app/lib/UI/DeliveryService.pm
index 6e4428f..7e63fba 100644
--- a/traffic_ops/app/lib/UI/DeliveryService.pm
+++ b/traffic_ops/app/lib/UI/DeliveryService.pm
@@ -1021,7 +1021,7 @@ sub create {
 				ccr_dns_ttl                 => $self->paramAsScalar('ds.ccr_dns_ttl'),
 				type                        => $self->paramAsScalar('ds.type'),
 				cdn_id                      => $cdn_id,
-				profile                     => $self->paramAsScalar('ds.profile'),
+				profile                     => ($self->paramAsScalar('ds.profile') == -1) ? undef
: $self->paramAsScalar('ds.profile'),
 				global_max_mbps             => $self->hr_string_to_mbps( $self->paramAsScalar(
'ds.global_max_mbps', 0 ) ),
 				global_max_tps              => $self->paramAsScalar( 'ds.global_max_tps', 0 ),
 				miss_lat                    => $self->paramAsScalar('ds.miss_lat'),


Mime
View raw message