You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2017/06/09 19:57:16 UTC

[2/3] incubator-trafficcontrol git commit: Fix TO parameters

Fix TO parameters


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

Branch: refs/heads/master
Commit: 3c31e0bbe2304dda6fa7f0ab20bdfa28af79ec09
Parents: 99b8031
Author: Robert Butts <ro...@gmail.com>
Authored: Mon May 8 11:00:23 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Fri Jun 9 13:56:54 2017 -0600

----------------------------------------------------------------------
 traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3c31e0bb/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
index 5ebc661..9ac3599 100644
--- a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
+++ b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
@@ -521,13 +521,13 @@ sub delivery_service_data_by_profile {
 				select 
 				id 
 				from server 
-				where profile = '.$profile_id.'
+				where profile = $1
 			)
 		);
 	';
 
 	my $stmt = $dbh->prepare($qry);
-	$stmt->execute();
+	$stmt->execute($profile_id);
 
 	my $deliveryservice_id;
 	my $deliveryservice_xml_id;