fix defect 3724 makehosts should report error/warning messages when entrys in hosts table are not correct

This commit is contained in:
immarvin 2013-08-01 01:23:45 -07:00
parent 016a947428
commit dab5a33b3f

View File

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