2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-09 13:00:16 +00:00

Merge pull request #2671 from bybai/fixhost

fix issue 2657 makehosts erroneously deletes entries from /etc/hosts
This commit is contained in:
yangsong
2017-03-20 11:35:36 +08:00
committed by GitHub

View File

@@ -74,7 +74,7 @@ sub addnode
{
if ($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]/)
{
if ($foundone)
{