2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-07 10:48:24 +00:00

Fix if macdata does not exist

If macdata undefined, it took out all of inventory.
This commit is contained in:
Jarrod Johnson
2017-03-28 09:28:20 -04:00
parent bebac9a567
commit edb97dc0f1

View File

@@ -4107,7 +4107,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;