Skip to content

Commit

Permalink
Fix for jonlives#14 and jonlives#15
Browse files Browse the repository at this point in the history
  • Loading branch information
rrj2004 committed Sep 9, 2015
1 parent 8940073 commit e348641
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion check_jenkins_nodes.pl
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,18 @@ sub main {
for my $computer (@{$obj->{'computer'} or []})
{
++$totalNodes;
if($computer->{'offline'} eq 'true')
if(($computer->{'offline'} eq 'true') || ($computer->{'offline'} eq '1'))
{
push(@offline, {
'displayName' => $computer->{'displayName'},
'offlineCauseReason' => $computer->{'offlineCauseReason'}
});
}
# all nodes online
else {
$retStr = "All nodes online.\n";
$exitCode = $ERRORS{'OK'};
}
}

if (my $offlineNodes = scalar(@offline))
Expand Down

0 comments on commit e348641

Please sign in to comment.