2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-12 17:30:19 +00:00

fix issue 2717 makehosts -d will delete erroneously entries /etc/hosts if one node s01 another is

This commit is contained in:
bybai
2017-03-22 03:08:33 -04:00
parent bdaa5cd2c3
commit b4fa5f0486

View File

@ -44,7 +44,7 @@ sub delnode
while ($idx <= $#hosts)
{
if (($ip and $hosts[$idx] =~ /^${ip}\s/)
or $hosts[$idx] =~ /^\d+\.\d+\.\d+\.\d+\s+${node}[\s\.r]/)
or $hosts[$idx] =~ /^\d+\.\d+\.\d+\.\d+\s+${node}[\s\.\r]/)
{
$hosts[$idx] = "";
}