diff options
author | Christian Hesse <mail@eworm.de> | 2022-07-05 15:30:39 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-07-06 11:37:02 +0200 |
commit | 5a02c32d7d0c5d8b0951898e040b7918ff1b560a (patch) | |
tree | dd05ebcea4161c0314d8d7b9a198a962bf6d1549 /netwatch-notify | |
parent | 447e1d99f982d43f42d1e2fe3053e747c5df234a (diff) |
netwatch-notify: properly check for disabled state
Looks like checking for 'disabled=no' fails with net netwatch
in RouterOS 7.4...
Diffstat (limited to 'netwatch-notify')
-rw-r--r-- | netwatch-notify | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netwatch-notify b/netwatch-notify index 45b0c76..d9b8cf0 100644 --- a/netwatch-notify +++ b/netwatch-notify @@ -54,7 +54,7 @@ $ScriptLock $0; :set NetwatchNotify [ :toarray "" ]; } -:foreach Host in=[ /tool/netwatch/find where comment~"notify" disabled=no ] do={ +:foreach Host in=[ /tool/netwatch/find where comment~"notify" !disabled ] do={ :local HostVal [ /tool/netwatch/get $Host ]; :local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ]; |