check-lte-firmware-upgrade: use $LogPrintExit

This commit is contained in:
Christian Hesse 2020-04-03 17:19:34 +02:00
parent d2b1f036ca
commit ee903e263f

View file

@ -8,6 +8,7 @@
:global Identity;
:global SentLteFirmwareUpgradeNotification;
:global LogPrintExit;
:global SendNotification;
:foreach Interface in=[ / interface lte find ] do={
@ -16,8 +17,8 @@
:local Firmware [ / interface lte firmware-upgrade $Interface once as-value ];
:if ($SentLteFirmwareUpgradeNotification = ($Firmware->"latest")) do={
:log debug ("Already sent the LTE firmware upgrade notification for version " . \
($Firmware->"latest") . ".");
$LogPrintExit debug ("Already sent the LTE firmware upgrade notification for version " . \
($Firmware->"latest") . ".") false;
} else={
:if (($Firmware->"installed") != ($Firmware->"latest")) do={
$SendNotification ("LTE firmware upgrade") \
@ -27,7 +28,7 @@
}
}
} on-error={
:log debug ("Could not get latest LTE firmware version for interface " . \
$IntName . ".");
$LogPrintExit debug ("Could not get latest LTE firmware version for interface " . \
$IntName . ".") false;
}
}