From d63a27bf1dd694b25e6668a080025ff32d76e1c7 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 2 Nov 2010 18:16:33 +0000 Subject: [PATCH] fix grep in isMemberofGroup git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8007 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Utils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index a6121031b..f09573de1 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -761,7 +761,7 @@ sub isMemberofGroup my ($class, $node,$group ) = @_; my $ismember; my @nodes=xCAT::Utils->list_nodes_in_nodegroups($group); - if (grep(/$node/, @nodes)) { + if (grep(/^$node$/, @nodes)) { $ismember =1; } else { $ismember =0;