bug 2810670: defrm foreach logic error fix

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3617 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2009-06-23 05:33:53 +00:00
parent 7c6c9a1706
commit 8bafc4bb2e

View File

@ -2849,6 +2849,11 @@ sub defrm
my $memberlist = xCAT::DBobjUtils->getGroupMembers($obj, \%grphash);
my @members = split(',', $memberlist);
# No node in the group
if (scalar(@members) == 0)
{
next;
}
# foreach member node of the group
my %nodehash;
my %nhash;