From 83ea798bcd03df0765f0c40737b6197979b4786a Mon Sep 17 00:00:00 2001 From: jbjohnso <jbjohnso@8638fb3e-16cb-4fca-ae20-7b5d299a9bcd> Date: Sun, 4 Nov 2012 17:25:32 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/nodestat.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/nodestat.pm b/xCAT-server/lib/xcat/plugins/nodestat.pm index b5a6348fe..82ea67f06 100644 --- a/xCAT-server/lib/xcat/plugins/nodestat.pm +++ b/xCAT-server/lib/xcat/plugins/nodestat.pm @@ -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";