fix bug 3185: rvitals NODE lcds has no output on rhels6.2 and NGP Flex blades

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14565 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2012-12-06 05:33:37 +00:00
parent 933b5e0983
commit 7c754c200e
3 changed files with 11 additions and 3 deletions

View File

@ -429,7 +429,7 @@ sub lcds {
}
}
if( $type =~ /lpar/ ) {
if( $type =~ /lpar|blade/ ) {
$action = "query_lcds";
} else {
$action = "cec_query_lcds";

View File

@ -3874,7 +3874,11 @@ sub filter_nodes{
push @{$mpnodes}, @ngpfsp;
}
} elsif ($cmd eq "rvitals") {
push @{$mpnodes}, @ngpfsp;
if (@args && (grep /^lcds$/,@args)) {
push @{$fspnodes},@ngpfsp;
} else {
push @{$mpnodes}, @ngpfsp;
}
} else {
push @{$fspnodes}, @ngpfsp;
}

View File

@ -176,7 +176,11 @@ sub filter_nodes{
push @{$mpnodes}, @ngpfsp;
}
} elsif ($cmd eq "rvitals") {
push @{$mpnodes},@ngpfsp;
if (@args && (grep /^lcds$/,@args)) {
push @{$fspnodes}, @ngpfsp;
} else {
push @{$mpnodes},@ngpfsp;
}
} else {
push @{$fspnodes}, @ngpfsp;
}