fix defect 3724 makehosts should report error/warning messages when entrys in hosts table are not correct
This commit is contained in:
parent
016a947428
commit
dab5a33b3f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user