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
This commit is contained in:
parent
acbd43ef20
commit
99c85c78f9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user