Skip to content

Commit f8cf9d1

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "CI: add missing --fail argument to curl" into stable/victoria
2 parents 53a0b86 + 0852c77 commit f8cf9d1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/test-ironic.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function wait_for_placement_resources {
1616
local expected_count=1
1717
local resource_class="RC0"
1818

19-
curl -L -o jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
19+
curl --fail -L -o jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
2020
chmod +x jq
2121

2222
# TODO(mgoddard): switch to Placement OSC plugin, once it exists
@@ -36,6 +36,7 @@ function wait_for_placement_resources {
3636
# Fetch provider UUIDs from Placement
3737
local providers
3838
args=(
39+
--fail
3940
-sH "X-Auth-Token: $token"
4041
)
4142
if [[ "$TLS_ENABLED" = "True" ]]; then

tools/init-runonce

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if ! [ -f "${IMAGE_PATH}/${IMAGE}" ]; then
6666
IMAGE_PATH='./'
6767
if ! [ -f "${IMAGE_PATH}/${IMAGE}" ]; then
6868
echo None found, downloading cirros image.
69-
curl -L -o ${IMAGE_PATH}/${IMAGE} ${IMAGE_URL}/${IMAGE}
69+
curl --fail -L -o ${IMAGE_PATH}/${IMAGE} ${IMAGE_URL}/${IMAGE}
7070
fi
7171
else
7272
echo Using cached cirros image from the nodepool node.

0 commit comments

Comments
 (0)