From 414e1bdbe9fb1a02af617778e2c055af57fa75c0 Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 10 Jun 2010 05:18:12 +0000 Subject: [PATCH] fix for a problem reported on mailing list, the node name can not be used in the dynamic node group selection string git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6417 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 88228aabe..2c73a21d7 100644 --- a/perl-xCAT/xCAT/DBobjUtils.pm +++ b/perl-xCAT/xCAT/DBobjUtils.pm @@ -1778,6 +1778,12 @@ sub getGroupMembers my @whereattrs = keys %whereHash; my %nodeattrhash = xCAT::DBobjUtils->getobjdefs(\%tmphash, 0, \@whereattrs); + # The attribute 'node' can be used as a key of selection string, + # however, the 'node' attribute is not included in the getobjdefs hash + foreach my $objname (keys %nodeattrhash) + { + $nodeattrhash{$objname}{'node'} = $objname; + } my $first = 1; foreach my $objname (keys %nodeattrhash) {