From 8bafc4bb2e3c4b8aea5385fe21aca0bc80916533 Mon Sep 17 00:00:00 2001 From: ligc Date: Tue, 23 Jun 2009 05:33:53 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/DBobjectdefs.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm index f81ad2971..7014b68a9 100644 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -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;