mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
netwatch-notify: properly initialize default values
This commit is contained in:
@@ -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={
|
||||||
|
Reference in New Issue
Block a user