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/branches/2.7@14564 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2012-12-06 03:26:05 +00:00
parent 7ca468b29b
commit 46d9b6345c
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

@ -3827,7 +3827,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;
}