Fix problem where nodestat with hosts table lookup fails

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14235 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-11-04 17:25:32 +00:00
parent 6464143589
commit 83ea798bcd

View File

@ -656,7 +656,7 @@ sub process_request_nmap {
}
$appsd =~ s/,$//;
my $target=$currnode;
if ($hostsents{$target} and $target = $hostsents{$target}->[0]->{ip}) { $target = $hostsents{$target}->[0]->{ip}; }
if ($hostsents{$target} and $hostsents{$target}->[0]->{ip}) { $target = $hostsents{$target}->[0]->{ip}; }
if ($status or ($installquerypossible and $status = installer_query($target))) { #pingable, but no *clue* as to what the state may be
$ret->{$currnode}->{'status'}="ping";