From 0e6b734b061ceb3eacb1280e1eda624c636dd26f Mon Sep 17 00:00:00 2001 From: zhanx Date: Fri, 13 Nov 2009 03:02:07 +0000 Subject: [PATCH] fix bug 2896247 mkhwconn has error working with plug-in with nodehm.mgt git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4561 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCdb.pm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/perl-xCAT/xCAT/PPCdb.pm b/perl-xCAT/xCAT/PPCdb.pm index d1573a02e..e157b74a5 100644 --- a/perl-xCAT/xCAT/PPCdb.pm +++ b/perl-xCAT/xCAT/PPCdb.pm @@ -89,8 +89,8 @@ sub add_ppc { # If cannot be overwroten, get # old data firstly ############################### - my $mgt; - my $cons; + my $mgt = $hwtype; + my $cons= $hwtype; if ( $not_overwrite) { my $enthash = $db{ppc}->getNodeAttribs( $name, [qw(hcp id pprofile parent)]); @@ -114,11 +114,6 @@ sub add_ppc { $serial= $enthash->{serial} if ( $enthash->{serial}); } } - else - { - $mgt = $hwtype; - $cons = $hwtype; - } ############################### # Update ppc table