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:
parent
2ff72b6774
commit
d63a27bf1d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user