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;