From c5213d8ff15973802465fe49b42384a30ca1d902 Mon Sep 17 00:00:00 2001 From: yinle Date: Mon, 10 Jan 2011 08:27:32 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/PPCdb.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/perl-xCAT/xCAT/PPCdb.pm b/perl-xCAT/xCAT/PPCdb.pm index aebafe408..09a76150e 100644 --- a/perl-xCAT/xCAT/PPCdb.pm +++ b/perl-xCAT/xCAT/PPCdb.pm @@ -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; ###########################