check secret availability before run
This commit is contained in:
@@ -149,6 +149,9 @@ precheck_conf_ceph()
|
|||||||
prnt m "you need to export it temporarily in your environment, using the"
|
prnt m "you need to export it temporarily in your environment, using the"
|
||||||
prnt m "\"CEPH_SECRET\" variable."
|
prnt m "\"CEPH_SECRET\" variable."
|
||||||
die 181
|
die 181
|
||||||
|
elif ! check_secret $CEPH_SECRET; then
|
||||||
|
prnt E "The declared $CEPH_SECRET is not accessible."
|
||||||
|
die 183
|
||||||
fi
|
fi
|
||||||
if [[ -z $CEPH_MOUNTS ]]; then
|
if [[ -z $CEPH_MOUNTS ]]; then
|
||||||
prnt E "No CEPH mounts declared, despite reachable servers."
|
prnt E "No CEPH mounts declared, despite reachable servers."
|
||||||
|
|||||||
Reference in New Issue
Block a user