ceph: remove extra slash in curl
When no VAULT_BACKEND_PATH is specified we default to the API one which is set to "secret/", we could use a different variable but we don't want to break the library support. Bonus point this will also fix issue with users passing a slash at the end of the path. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
1 parent
9c00005140
commit
d9646d09ce
1 file changed
+3
@@ -190,6 +190,9 @@ if [ -n "$VAULT_TLS_SERVER_NAME" ]; then
|
||||
ARGS+=(--connect-to ::"${VAULT_TLS_SERVER_NAME}":)
|
||||
fi
|
||||
|
||||
# trim VAULT_BACKEND_PATH for last character '/' to avoid a redirect response from the server
|
||||
VAULT_BACKEND_PATH="${VAULT_BACKEND_PATH%%/}"
|
||||
|
||||
# Check KV engine version
|
||||
if [[ "$VAULT_BACKEND" == "v2" ]]; then
|
||||
PYTHON_DATA_PARSE="['data']['data']"
|
||||
|
||||
Reference in new issue
Block a user