From 7541b9cd6ef92fd98cf390fa0dfe829c3462b58d Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 6 May 2011 08:07:27 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/PPCconn.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/PPCconn.pm b/perl-xCAT/xCAT/PPCconn.pm index d7da923d1..b794aa5b9 100644 --- a/perl-xCAT/xCAT/PPCconn.pm +++ b/perl-xCAT/xCAT/PPCconn.pm @@ -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);