fix defect 3734 makehosts throw exceptions when node ip is not illegal

This commit is contained in:
immarvin 2013-08-08 21:32:03 -07:00 committed by ligc
parent 2952f0e907
commit 754866a6f5

View File

@ -252,6 +252,13 @@ sub add_hosts_content {
{
addnode $callback, $nodename, $ip, $ref->{hostnames}, $domain;
}
else
{
my $rsp;
push @{$rsp->{data}}, "Invalid IP Addr \'$ref->{ip}\' for node \'$ref->{node}\'.";
xCAT::MsgUtils->message("E", $rsp, $callback);
}
if (defined($ref->{otherinterfaces}))
{
addotherinterfaces $callback, $nodename, $ref->{otherinterfaces}, $domain;