aboutsummaryrefslogtreecommitdiffstats
path: root/capsman-rolling-upgrade
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-08-29 07:54:00 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-08-29 07:54:00 +0200
commit2d1a07dd0f9e30d8993e4ecafd937772003553d9 (patch)
treecffd1cbb64dc99674a526560213c7bb6ac259d96 /capsman-rolling-upgrade
parent63ca79b960c30e38eecc9fab9e295d0845663db6 (diff)
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.
Diffstat (limited to 'capsman-rolling-upgrade')
-rw-r--r--capsman-rolling-upgrade2
1 files changed, 1 insertions, 1 deletions
diff --git a/capsman-rolling-upgrade b/capsman-rolling-upgrade
index 11b32e1..7723f93 100644
--- a/capsman-rolling-upgrade
+++ b/capsman-rolling-upgrade
@@ -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");
}
}