diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index c3e90a275..26f3f867b 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -3197,7 +3197,7 @@ sub noderangecontainsMn } } if ($mname) { # if Management Node defined in the database - if (grep(/$mname/, @noderange)) { # if MN in the noderange + if (grep(/^$mname$/, @noderange)) { # if MN in the noderange return $mname; } else { return ;