mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-07-30 21:21:35 +00:00
global-functions: $ScriptInstallUpdate: drop the check for matching policies...
... as this started to produce false positives.
This commit is contained in:
parent
3fd8fd1f09
commit
db751235c2
1 changed files with 0 additions and 8 deletions
|
|
@ -1336,14 +1336,6 @@
|
|||
:local ScriptInfo [ $ParseKeyValueStore ($ScriptVal->"comment") ];
|
||||
:local SourceNew;
|
||||
|
||||
:foreach Scheduler in=[ /system/scheduler/find where on-event~("\\b" . $ScriptVal->"name" . "\\b") ] do={
|
||||
:local SchedulerVal [ /system/scheduler/get $Scheduler ];
|
||||
:if ($ScriptVal->"policy" != $SchedulerVal->"policy") do={
|
||||
$LogPrint warning $0 ("Policies differ for script '" . $ScriptVal->"name" . \
|
||||
"' and its scheduler '" . $SchedulerVal->"name" . "'!");
|
||||
}
|
||||
}
|
||||
|
||||
:do {
|
||||
:if ($ScriptInfo->"ignore" = true) do={
|
||||
$LogPrint debug $0 ("Ignoring script '" . $ScriptVal->"name" . "', as requested.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue