2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-13 18:00:38 +00:00

Display hostname even if multiple IP addresses

This commit is contained in:
Mark Gurevich
2017-12-07 14:30:26 -05:00
parent e7e6b60215
commit dbebcddf5f

View File

@ -2751,7 +2751,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};
}
@ -2783,7 +2784,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 = ();