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 2016/11/21 19:05:53 UTC

[38/40] incubator-trafficcontrol git commit: fixed perl warning of prior defined variable

fixed perl warning of prior defined variable


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

Branch: refs/heads/psql-rebase
Commit: 674556e7ae94333c1d17041e476f4ce43030c0cb
Parents: c2b001c
Author: Dewayne Richardson <de...@apache.org>
Authored: Fri Nov 18 10:13:24 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Mon Nov 21 12:04:10 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/674556e7/traffic_ops/app/lib/API/Server.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/Server.pm b/traffic_ops/app/lib/API/Server.pm
index c7c7cab..755e854 100644
--- a/traffic_ops/app/lib/API/Server.pm
+++ b/traffic_ops/app/lib/API/Server.pm
@@ -751,7 +751,7 @@ sub get_servers_by_profile_id {
 		return ( $forbidden, $servers );
 	}
 
-	my $servers = $self->db->resultset('Server')->search( { profile => $profile_id } );
+	$servers = $self->db->resultset('Server')->search( { profile => $profile_id } );
 	return ( $forbidden, $servers );
 }