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:
commit
0632e86b02
@ -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] = "";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user