mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-12 11:04:32 +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");
|
||||
|
||||
:if ([ :typeof ($NetwatchNotify->$HostName) ] = "nothing") do={
|
||||
:set ($NetwatchNotify->$HostName) [ :toarray "" ];
|
||||
:set ($NetwatchNotify->$HostName) { "count"=0; "notified"=false };
|
||||
}
|
||||
|
||||
:if ($HostVal->"status" = "up") do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue