mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 10:06:39 +00:00
Merge pull request #2671 from bybai/fixhost
fix issue 2657 makehosts erroneously deletes entries from /etc/hosts
This commit is contained in:
commit
725a44ad83
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user