fsp/bpa redundancy: set hidden attribute to the node

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8586 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2011-01-10 08:27:32 +00:00
parent 28afd60d74
commit c5213d8ff1

View File

@ -155,6 +155,12 @@ sub add_ppc {
# Update nodelist table
###########################
updategroups( $name, $db{nodelist}, $type );
if ( $type =~ /^(fsp|bpa)$/ ) {
$db{nodelist}->setNodeAttribs( $name, hidden => '0'));
} else {
$db{nodelist}->setNodeAttribs( $name, hidden => '1'));
}
$db{nodelist}{commit} = 1;
###########################