cloudapi/v2: Plural path section when querying a collection

This commit is contained in:
sanne 2021-10-14 11:10:00 +02:00 committed by Ondřej Budai
parent 7e6365742f
commit 87cc722021
6 changed files with 33 additions and 33 deletions

View file

@ -670,7 +670,7 @@ function waitForState() {
local VERSION="${2:-v1}"
local URL=https://localhost/api/composer/v1/compose/"$COMPOSE_ID"
if [ "$VERSION" = "v2" ]; then
URL=https://localhost/api/image-builder-composer/v2/compose/"$COMPOSE_ID"
URL=https://localhost/api/image-builder-composer/v2/composes/"$COMPOSE_ID"
fi
while true
@ -974,7 +974,7 @@ function verifyInAWSS3() {
--cacert /etc/osbuild-composer/ca-crt.pem \
--key /etc/osbuild-composer/client-key.pem \
--cert /etc/osbuild-composer/client-crt.pem \
https://localhost/api/image-builder-composer/v2/compose/"$COMPOSE_ID"/metadata | jq -r '.ostree_commit')
https://localhost/api/image-builder-composer/v2/composes/"$COMPOSE_ID"/metadata | jq -r '.ostree_commit')
if [[ "${API_COMMIT_ID_V2}" != "${TAR_COMMIT_ID}" ]]; then
echo "Commit ID returned from API v2 does not match Commit ID in archive 😠"