2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 20:30:56 +00:00

fix issue 1146: Format of hosts is wrong when add input in /etc/hosts

This commit is contained in:
ertaozh
2016-05-19 03:20:44 -04:00
parent 11cdf72972
commit 51f4573c0f

View File

@ -87,6 +87,7 @@ sub addnode
# we're processing the nics table and we found an
# existing entry for this ip so just add this
# ode name as an alias for the existing entry
chomp($hosts[$idx]);
my ($hip, $hnode, $hdom, $hother)= split(/ /, $hosts[$idx]);
# at this point "othernames", if any is just a space