mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-13 18:00:38 +00:00
Merge pull request #4475 from gurevichmark/openbmc_rspconfig_display_hostname
Display hostname even if multiple IP addresses
This commit is contained in:
@ -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 = ();
|
||||
|
Reference in New Issue
Block a user