mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 20:30:56 +00:00
Merge pull request #2764 from jjohnson42/fixrinv
Fix if macdata does not exist
This commit is contained in:
@ -4132,7 +4132,7 @@ sub parseboard {
|
||||
my $macdata = $boardinf{extra}->[6]->{value};
|
||||
my $macstring = "1";
|
||||
my $macprefix;
|
||||
while ($macstring !~ /00:00:00:00:00:00/ and not ref $global_sessdata->{currmacs}) {
|
||||
while ($macdata and $macstring !~ /00:00:00:00:00:00/ and not ref $global_sessdata->{currmacs}) {
|
||||
my @currmac = splice @$macdata, 0, 6;
|
||||
unless ((scalar @currmac) == 6) {
|
||||
last;
|
||||
|
Reference in New Issue
Block a user