Merge pull request #7196 from leseb/bz-1926617-2

ceph: fix wrong payload path
This commit is contained in:
Sébastien Han authored and GitHub committed 2021-02-10 17:23:06 +01:00
commit f02ae4a3e3
1 file changed
+1 -1
+1 -1
View File
@@ -198,7 +198,7 @@ fi
curl "${ARGS[@]}" "$VAULT_ADDR"/"$VAULT_KV_VERS"/"$VAULT_BACKEND_PATH"/"$KEK_NAME" > "$CURL_PAYLOAD"
# Check for errors in the payload
if python3 -c "import sys, json; print(json.load(sys.stdin)[\"errors\"], end='')" 2> /dev/null < a; then
if python3 -c "import sys, json; print(json.load(sys.stdin)[\"errors\"], end='')" 2> /dev/null < "$CURL_PAYLOAD"; then
exit 1
fi