fix bug #4027, replace chop with chomp

This commit is contained in:
Arif Ali 2014-03-20 23:10:31 +00:00
parent 12f1819180
commit 373cc13aa0

View File

@ -239,7 +239,7 @@ sub add_known_host
xCAT::MsgUtils->message("E", $rsp, $callback, 1);
return 1;
}
chop($output[0]);
chomp($output[0]);
my ($hostname,$ip_address) = xCAT::NetworkUtils->gethostnameandip($node);
if (!$hostname || !$ip_address)
{