2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-05-05 16:49:08 +00:00

Merge pull request #7545 from VersatusHPC/fix/nodeset-empty-master-ip

fix: fail nodeset when MASTER_IP cannot be resolved
This commit is contained in:
Markus Hilger
2026-05-05 01:34:25 +02:00
committed by GitHub

View File

@@ -123,9 +123,11 @@ sub subvars {
$ENV{XCATMASTER} = $master;
my $ipaddr = xCAT::NetworkUtils->getipaddr($master);
if ($ipaddr) {
$ENV{MASTER_IP} = "$ipaddr";
unless ($ipaddr) {
$tmplerr = "Unable to resolve master \"$master\" to an IP address for $node";
return;
}
$ENV{MASTER_IP} = "$ipaddr";
my @nodestatus = xCAT::TableUtils->get_site_attribute("nodestatus");
my $tmp = $nodestatus[0];