Commit 2d1a07dd authored by Christian Hesse's avatar Christian Hesse

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.
parent 63ca79b9
......@@ -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");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment