2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Merge pull request #1151 from zet809/fix_issue_1146

fix issue 1146: Format of hosts is wrong when add input in /etc/hosts
This commit is contained in:
Xiaopeng Wang 2016-05-19 16:44:19 +08:00
commit 0e0467a24e

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