fixed bug 3491152, call all_lpars_state firstly, for the node which couldn't be queried, call the stat again.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11702 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
37183d4185
commit
fb3869525a
@ -386,8 +386,20 @@ sub state {
|
||||
# Node not found
|
||||
##################################
|
||||
if ( !exists( $data->{$id} )) {
|
||||
push @result, [$name, $prefix."Node not found",1];
|
||||
next;
|
||||
my $res = xCAT::FSPUtils::fsp_api_action($name, $d, "state");
|
||||
my $rc = @$res[2];
|
||||
my $val = @$res[1];
|
||||
if( $rc != 0) {
|
||||
push @result, [$name, $prefix.$val,1];
|
||||
}
|
||||
|
||||
if( !defined($val) || $val =~ /^error$/ ) {
|
||||
push @result, [$name, $prefix."Node not found",1];
|
||||
next;
|
||||
} else {
|
||||
$data->{$id} = $val;
|
||||
}
|
||||
|
||||
}
|
||||
##################################
|
||||
# Output value
|
||||
|
Loading…
Reference in New Issue
Block a user