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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user