From 94f876a1cc35e088ae09cd8b646948327a854296 Mon Sep 17 00:00:00 2001 From: ligc Date: Tue, 14 May 2013 07:17:21 +0000 Subject: [PATCH] fix for bug 3574: the blank grptype means static nodegroup git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16289 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/DBobjectdefs.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm index 8f8960ba6..dce1a8a24 100644 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -2141,7 +2141,9 @@ sub defch # get the @memberlist for static group # - if provided - to use below - if ($grptype eq 'static') + # if the static group is not defined in the nodegroup table + # the grptype will be undef + if(!$grptype || ($grptype eq 'static')) { # check for bad cmd line options