From ccc973c5ef139bf2e54e93d2b4d1613cd0975ac4 Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Wed, 24 Sep 2025 16:51:25 +0200 Subject: [PATCH] check secret availability before run --- modules/conf_ceph.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/conf_ceph.sh b/modules/conf_ceph.sh index 2a6a836..c43484d 100644 --- a/modules/conf_ceph.sh +++ b/modules/conf_ceph.sh @@ -149,6 +149,9 @@ precheck_conf_ceph() prnt m "you need to export it temporarily in your environment, using the" prnt m "\"CEPH_SECRET\" variable." die 181 + elif ! check_secret $CEPH_SECRET; then + prnt E "The declared $CEPH_SECRET is not accessible." + die 183 fi if [[ -z $CEPH_MOUNTS ]]; then prnt E "No CEPH mounts declared, despite reachable servers."