fix bug rmhwconn 3298172:CEC will change mgt to cec

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9497 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2011-05-06 08:07:27 +00:00
parent 41eb47e678
commit 7541b9cd6e

View File

@ -720,7 +720,11 @@ sub rmhmcmgt
my $ent = $nodehm_tab->getNodeAttribs( $node, ['mgt']);
if ( !$ent or $ent->{mgt} ne $hwtype)
{
$nodehm_tab->setNodeAttribs( $node, { mgt=>$hwtype});
if ($hwtype eq "cec" || $hwtype eq "frame") {
$nodehm_tab->setNodeAttribs( $node, { mgt=>"fsp"});
} else {
$nodehm_tab->setNodeAttribs( $node, { mgt=>$hwtype});
}
}
my $ppc_tab = xCAT::Table->new('ppc', -create=>1);