You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2017/03/09 19:09:10 UTC
[02/44] incubator-trafficcontrol git commit: Fix ServerCheck.pm --
thanks tests.
Fix ServerCheck.pm -- thanks tests.
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/16678b2e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/16678b2e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/16678b2e
Branch: refs/heads/master
Commit: 16678b2e2b2f3cfed95421e90e0fce027ece5308
Parents: ee593b1
Author: Jan van Doorn <ja...@cable.comcast.com>
Authored: Tue Jan 3 21:16:27 2017 -0700
Committer: Jan van Doorn <jv...@apache.org>
Committed: Fri Feb 17 17:49:10 2017 +0000
----------------------------------------------------------------------
traffic_ops/app/lib/API/ServerCheck.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/16678b2e/traffic_ops/app/lib/API/ServerCheck.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/ServerCheck.pm b/traffic_ops/app/lib/API/ServerCheck.pm
index 34dd6a7..2a1394a 100644
--- a/traffic_ops/app/lib/API/ServerCheck.pm
+++ b/traffic_ops/app/lib/API/ServerCheck.pm
@@ -38,7 +38,7 @@ sub aadata {
my $rs_type = $self->db->resultset('Type')->search( \%condition );
my $rs =
$self->db->resultset('Server')
- ->search( { type => { -in => $rs_type->get_column('id')->as_query } }, { prefetch => [ 'servercheck', 'status', 'profile' ]} );
+ ->search( { 'me.type' => { -in => $rs_type->get_column('id')->as_query } }, { prefetch => [ 'servercheck', 'status', 'profile' ]} );
while ( my $server = $rs->next ) {
if ( !defined $server || !defined $server->servercheck ) {
next;