fix grep in isMemberofGroup

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8007 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-11-02 18:16:33 +00:00
parent 2ff72b6774
commit d63a27bf1d

View File

@ -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;