fix bug #4027, replace chop with chomp
This commit is contained in:
parent
12f1819180
commit
373cc13aa0
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user