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

This commit is contained in:
root 2013-08-01 00:21:21 -07:00
parent 03281d9891
commit f0e5505b24

View File

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