From 99c85c78f9d8ca979a94fbf0cd7ce2222ceb764c Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 18 Mar 2011 05:28:50 +0000 Subject: [PATCH] modify the process rflash. Neither hmc or direct-attach need to switch from fsp/bpa nodes to CEC/Frame nodes. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9080 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCrflash.pm | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/perl-xCAT/xCAT/PPCrflash.pm b/perl-xCAT/xCAT/PPCrflash.pm index dacb30b07..414572929 100644 --- a/perl-xCAT/xCAT/PPCrflash.pm +++ b/perl-xCAT/xCAT/PPCrflash.pm @@ -55,23 +55,23 @@ sub parse_args { ############################################# # Change CEC/Frame node into FSPs/BPAs ############################################# - my @newnodes = (); - my $nodes = $request->{node}; - foreach my $snode(@$nodes) { - my $ntype = xCAT::DBobjUtils->getnodetype($snode); - if ( $ntype =~ /^(cec|frame)$/) { - my $children = xCAT::DBobjUtils->getchildren($snode); - unless( $children ) { - next; - } - foreach (@$children) { - push @newnodes, $_; - } - } else { - push @newnodes, $snode; - } - } - $request->{node} = \@newnodes; + #my @newnodes = (); + #my $nodes = $request->{node}; + #foreach my $snode(@$nodes) { + # my $ntype = xCAT::DBobjUtils->getnodetype($snode); + # if ( $ntype =~ /^(cec|frame)$/) { + # my $children = xCAT::DBobjUtils->getchildren($snode); + # unless( $children ) { + # next; + # } + # foreach (@$children) { + # push @newnodes, $_; + # } + # } else { + # push @newnodes, $snode; + # } + #} + #$request->{node} = \@newnodes; ############################################# # Responds with usage statement