fix bug 3356485 :mkhwconn frame03 -s -V fails for sfp HMC connection

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10070 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2011-07-13 04:18:03 +00:00
parent d3538e0de7
commit 25c4a6e602

View File

@ -2318,7 +2318,7 @@ sub getHCPsOfNodes
if ( $ppctab ) {
my $typeref = xCAT::DBobjUtils->getnodetype($nodes);
my $i = 0;
unless ( $request->{arg}->[1] ) {
unless ( $request->{sfp} ) {
for my $n (@$nodes) {
if (@$typeref[$i++] =~ /^fsp|bpa$/) {
my $np = $ppctab->getNodeAttribs( $n, [qw(parent)]);
@ -2337,7 +2337,7 @@ sub getHCPsOfNodes
}
return \%newhcp;
} else {
my $sfp = $request->{arg}->[1];
my $sfp = $request->{sfp};
my %sfphash;
for my $n (@$nodes) {
# record hcp