2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 10:06:39 +00:00

Merge pull request #2718 from bybai/host02

fix issue 2717 makehosts -d will delete erroneously entries /etc/host…
This commit is contained in:
yangsong 2017-03-22 02:15:47 -05:00 committed by GitHub
commit 0632e86b02

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] = "";
}