From c72ad7b844be2d3fe4303bddd599bb524d8e6dba Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 3 Feb 2010 09:52:03 +0000 Subject: [PATCH] defect: 2935237: use the static as the defualt value of grouptype git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/DBobjUtils.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/perl-xCAT/xCAT/DBobjUtils.pm b/perl-xCAT/xCAT/DBobjUtils.pm index 692f5443d..99ac82597 100644 --- a/perl-xCAT/xCAT/DBobjUtils.pm +++ b/perl-xCAT/xCAT/DBobjUtils.pm @@ -1707,6 +1707,12 @@ sub getGroupMembers my %objhash = %$hash_ref; + # set 'static' as the dafault of nodetype + if (!defined($objhash{$objectname}{'grouptype'}) || + $objhash{$objectname}{'grouptype'} eq "") { + $objhash{$objectname}{'grouptype'} = 'static'; + } + if ($objhash{$objectname}{'grouptype'} eq 'static') {