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') {