From 51f4573c0fb539407fe0ebb33e802a92bd6fbc15 Mon Sep 17 00:00:00 2001 From: ertaozh Date: Thu, 19 May 2016 03:20:44 -0400 Subject: [PATCH] fix issue 1146: Format of hosts is wrong when add input in /etc/hosts --- xCAT-server/lib/xcat/plugins/hosts.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/xcat/plugins/hosts.pm b/xCAT-server/lib/xcat/plugins/hosts.pm index bf5760d2c..8f64c8913 100755 --- a/xCAT-server/lib/xcat/plugins/hosts.pm +++ b/xCAT-server/lib/xcat/plugins/hosts.pm @@ -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