mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user