diff --git a/perl-xCAT/xCAT/PPCdb.pm b/perl-xCAT/xCAT/PPCdb.pm index 4bd6ff5bc..42e002589 100644 --- a/perl-xCAT/xCAT/PPCdb.pm +++ b/perl-xCAT/xCAT/PPCdb.pm @@ -105,9 +105,10 @@ sub add_ppc { ########################### # Update nodehm table ########################### - $db{nodehm}->setNodeAttribs( $name, {mgt=>$hwtype} ); if($type =~ /^lpar$/){ - $db{nodehm}->setNodeAttribs( $name, {cons=>$hwtype} ); + $db{nodehm}->setNodeAttribs( $name, {mgt=>$hwtype,cons=>$hwtype} ); + } else { + $db{nodehm}->setNodeAttribs( $name, {mgt=>$hwtype} ); } $db{nodehm}{commit} = 1; }