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:
@ -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] = "";
|
||||
}
|
||||
|
Reference in New Issue
Block a user