unattended-lte-firmware-upgrade: skip interface on missing firmware information

This commit is contained in:
Christian Hesse 2021-02-26 12:21:38 +01:00
parent 9c9c9f4d34
commit 464dd55bbd

View file

@ -15,6 +15,7 @@
:log debug ("Could not get latest LTE firmware version for interface " . $IntName . "."); :log debug ("Could not get latest LTE firmware version for interface " . $IntName . ".");
} }
:if ([ :typeof $Firmware ] = "array") do={
:if (($Firmware->"installed") != ($Firmware->"latest")) do={ :if (($Firmware->"installed") != ($Firmware->"latest")) do={
:log info ("Scheduling LTE firmware upgrade for interface " . $IntName . "."); :log info ("Scheduling LTE firmware upgrade for interface " . $IntName . ".");
:global LTEFirmwareUpgrade do={ :global LTEFirmwareUpgrade do={
@ -32,4 +33,7 @@
} else={ } else={
:log info ("The LTE firmware is up to date on interface " . $IntName . "."); :log info ("The LTE firmware is up to date on interface " . $IntName . ".");
} }
} else={
:log info ("No LTE firmware information available for interface " . $IntName . ".");
}
} }