setting mgt&cons attributes at same time for better performance
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3047 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
757cd855b4
commit
f1f557b011
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user