fix bug 4251:nodeset return xnba plugin bug, pid 657 when node mac is not defined
This commit is contained in:
parent
2a6fe02049
commit
2c12505a11
@ -690,9 +690,9 @@ sub kickstartnetwork {
|
||||
my $line = "network --onboot=yes --bootproto=";
|
||||
my $hoststab;
|
||||
my $mactab = xCAT::Table->new('mac',-create=>0);
|
||||
unless ($mactab) { die "mac table should always exist prior to template processing when doing autoula"; }
|
||||
unless ($mactab) { $tmplerr ="mac table should always exist prior to template processing when doing autoula"; return;}
|
||||
my $ent = $mactab->getNodeAttribs($node,['mac'],prefetchcache=>1);
|
||||
unless ($ent and $ent->{mac}) { die "missing mac data for $node"; }
|
||||
unless ($ent and $ent->{mac}) { $tmplerr ="missing mac data for $node"; return;}
|
||||
my $suffix = $ent->{mac};
|
||||
$suffix = lc($suffix);
|
||||
if ($::XCATSITEVALS{managedaddressmode} eq "autoula") {
|
||||
|
Loading…
Reference in New Issue
Block a user