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
This commit is contained in:
zhanx 2009-11-13 03:02:07 +00:00
parent d7e93945b3
commit 0e6b734b06

View File

@ -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