CI: add missing --fail argument to curl
Change-Id: Ibd06726ac6edcb63a1d5d4f4148851876316dc5b
This commit is contained in:
parent
ffef1f2953
commit
9444631078
@ -16,7 +16,7 @@ function wait_for_placement_resources {
|
|||||||
local expected_count=1
|
local expected_count=1
|
||||||
local resource_class="RC0"
|
local resource_class="RC0"
|
||||||
|
|
||||||
curl -L -o jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
|
curl --fail -L -o jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
|
||||||
chmod +x jq
|
chmod +x jq
|
||||||
|
|
||||||
# TODO(mgoddard): switch to Placement OSC plugin, once it exists
|
# TODO(mgoddard): switch to Placement OSC plugin, once it exists
|
||||||
@ -36,6 +36,7 @@ function wait_for_placement_resources {
|
|||||||
# Fetch provider UUIDs from Placement
|
# Fetch provider UUIDs from Placement
|
||||||
local providers
|
local providers
|
||||||
args=(
|
args=(
|
||||||
|
--fail
|
||||||
-sH "X-Auth-Token: $token"
|
-sH "X-Auth-Token: $token"
|
||||||
)
|
)
|
||||||
if [[ "$TLS_ENABLED" = "True" ]]; then
|
if [[ "$TLS_ENABLED" = "True" ]]; then
|
||||||
|
@ -66,7 +66,7 @@ if ! [ -f "${IMAGE_PATH}/${IMAGE}" ]; then
|
|||||||
IMAGE_PATH='./'
|
IMAGE_PATH='./'
|
||||||
if ! [ -f "${IMAGE_PATH}/${IMAGE}" ]; then
|
if ! [ -f "${IMAGE_PATH}/${IMAGE}" ]; then
|
||||||
echo None found, downloading cirros image.
|
echo None found, downloading cirros image.
|
||||||
curl -L -o ${IMAGE_PATH}/${IMAGE} ${IMAGE_URL}/${IMAGE}
|
curl --fail -L -o ${IMAGE_PATH}/${IMAGE} ${IMAGE_URL}/${IMAGE}
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo Using cached cirros image from the nodepool node.
|
echo Using cached cirros image from the nodepool node.
|
||||||
|
Loading…
Reference in New Issue
Block a user