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 2017/05/02 17:21:45 UTC

[2/4] incubator-trafficcontrol git commit: Fixes the ability to add a DS without a profile. This fixes TC-256

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 <da...@gmail.com>
Authored: Wed Apr 26 13:10:04 2017 -0600
Committer: Dewayne Richardson <de...@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'),