mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-03 01:35:03 +02:00
capsman-rolling-upgrade: do not fail on missing cap
This is a long running process, chances are that a cap disappears intermittently. So find cap by name and do not fail.
This commit is contained in:
parent
63ca79b960
commit
2d1a07dd0f
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
|||
:local RemoteCapVal [ / caps-man remote-cap get $RemoteCap ];
|
||||
:log info ("Starting upgrade for " . $RemoteCapVal->"name" . \
|
||||
" (" . $RemoteCapVal->"identity" . ")...");
|
||||
/ caps-man remote-cap upgrade $RemoteCap;
|
||||
/ caps-man remote-cap upgrade [ find where name=$RemoteCapVal->"name" ];
|
||||
:delay ($Delay . "s");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue