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
parent 65e1f6f484
commit d5609b9ca8

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;