mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-12 19:14:29 +02:00
netwatch-notify: properly initialize default values
This commit is contained in:
parent
792eba8465
commit
f90c59e4fb
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
||||||
:local HostName ([ $ParseKeyValueStore ($HostVal->"comment") ]->"hostname");
|
:local HostName ([ $ParseKeyValueStore ($HostVal->"comment") ]->"hostname");
|
||||||
|
|
||||||
:if ([ :typeof ($NetwatchNotify->$HostName) ] = "nothing") do={
|
:if ([ :typeof ($NetwatchNotify->$HostName) ] = "nothing") do={
|
||||||
:set ($NetwatchNotify->$HostName) [ :toarray "" ];
|
:set ($NetwatchNotify->$HostName) { "count"=0; "notified"=false };
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ($HostVal->"status" = "up") do={
|
:if ($HostVal->"status" = "up") do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue