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:
Christian Hesse 2019-08-29 07:54:00 +02:00
parent 63ca79b960
commit 2d1a07dd0f

View file

@ -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");
}
}