2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-12 17:30:19 +00:00

Merge pull request #4475 from gurevichmark/openbmc_rspconfig_display_hostname

Display hostname even if multiple IP addresses
This commit is contained in:
zet809
2017-12-08 14:28:24 +08:00
committed by GitHub

View File

@ -2753,7 +2753,8 @@ sub rspconfig_response {
# an adapter with a single IP address set.
$error = "Interfaces with multiple IP addresses are not supported";
$node_info{$node}{cur_status} = "";
last;
# Terminate loop on this error unless we are looking for hostname to display
last unless ($grep_string =~ /(.*)hostname(.*)/);
}
$nicinfo{$nic}{address} = $content{Address};
}
@ -2785,7 +2786,7 @@ sub rspconfig_response {
$node_info{$node}{cur_status} = "";
}
if ($error) {
xCAT::SvrUtils::sendmsg("$error", $callback, $node);
xCAT::SvrUtils::sendmsg([1,"$error"], $callback, $node);
} else {
my @address = ();
my @ipsrc = ();