fixed bug 2804616 rspconfig should support FSP/BPA nodes with mgt=hmc

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3680 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2009-07-01 06:03:26 +00:00
parent 9d5777e885
commit 5896c2227f
2 changed files with 22 additions and 1 deletions

View File

@ -53,6 +53,20 @@ sub parse_args {
#############################################
# Get support command list
#############################################
my $sitetab = xCAT::Table->new( 'nodetype' );
my $nodes = $request->{node};
foreach (@$nodes) {
if ( defined( $sitetab )) {
my ($ent) = $sitetab->getAttribs({ node=>$_},'nodetype');
if ( defined($ent) ) {
$request->{hwtype} = $ent->{nodetype};
last;
}
}
}
my $supported = $rsp{$request->{hwtype}};
#############################################

View File

@ -1285,8 +1285,15 @@ sub process_request {
my $request = {%$req};
$request->{command} = $req->{command}->[0];
$request->{stdin} = $req->{stdin}->[0];
$request->{hwtype} = $package;
# $request->{hwtype} = $package;
$request->{callback}= $callback;
#########################
#This is a special case for rspconfig, we shouldn't set hwtype as$package. and reserved for other commands.
#########################
if($request->{command} ne "rspconfig") {
$request->{hwtype} = $package;
}
####################################
# Option -V for verbose output
####################################