mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-24 21:04:28 +02:00
netwatch-notify: initialize after lock
This commit is contained in:
parent
7f0a8cdfcd
commit
491ecdb812
1 changed files with 2 additions and 2 deletions
|
@ -44,12 +44,12 @@
|
|||
:return ("Ran hook:\n" . $Hook);
|
||||
}
|
||||
|
||||
$ScriptLock $0;
|
||||
|
||||
:if ([ :typeof $NetwatchNotify ] = "nothing") do={
|
||||
:set NetwatchNotify [ :toarray "" ];
|
||||
}
|
||||
|
||||
$ScriptLock $0;
|
||||
|
||||
:foreach Host in=[ / tool netwatch find where comment~"notify" disabled=no ] do={
|
||||
:local HostVal [ / tool netwatch get $Host ];
|
||||
:local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue