From 2e53f21b7d0fbaa40f877894839104260e098abb Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Fri, 17 May 2013 02:40:15 +0000 Subject: [PATCH] fix bug 3578: "rscan cmm -u|-w" will write information of System p blade into ipmi table git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16346 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 52f567798..9f22c186c 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -1698,7 +1698,7 @@ sub rscan { $u4->{nodetype} = "ppc,osi"; } elsif ($type eq "blade") { $u4->{nodetype} = "mp,osi"; - } elsif ($type eq "mm" || $type eq "cmm") { + } elsif ($type eq "mm" || $type eq "cmm" || $type eq "xblade") { $u4->{nodetype} = "mp"; } $db{nodetype}->setAttribs($k4,$u4); @@ -1712,11 +1712,13 @@ sub rscan { $db{vpd}->setAttribs($k5,$u5); $db{vpd}{commit} = 1; # Update the entry in ipmi table for x blade - my ($k6, $u6); - $k6->{node} = $name; - $u6->{bmc} = $ip; - $db{ipmi}->setAttribs($k6,$u6); - $db{ipmi}{commit} = 1; + if ($type eq "xblade") { + my ($k6, $u6); + $k6->{node} = $name; + $u6->{bmc} = $ip; + $db{ipmi}->setAttribs($k6,$u6); + $db{ipmi}{commit} = 1; + } } foreach ( @tabs ) { if ( exists( $db{$_}{commit} )) {