1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-15 11:22:43 +03:00

Unhide imds error messages

imds drivers may print error messages to stderr. Do not hide those.
This commit is contained in:
Natanael Copa 2023-05-17 14:10:51 +02:00
parent c4d2592e41
commit a90bf444d3
3 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ imds() {
*) args="$key" ;;
esac
# TODO: retry/deadline
"$cmd" $args 2>/dev/null
"$cmd" $args
rv=$?
[ $err -eq 0 ] && continue
[ $rv = "0" ] || return $rv

View File

@ -48,7 +48,7 @@ run_userdata_body() {
#!/bin/sh
echo "hello from user-data"
EOF
CLOUD="nocloud" atf_check \
CLOUD="nocloud" atf_check -e match:"NoCloud 'meta-data' is empty" \
sh -c ". \"$lib\"; init__save_userdata"
CLOUD="nocloud" atf_check \
-o match:"hello from user-data" \

View File

@ -69,7 +69,7 @@ save_userdata_plain_body() {
fake_userdata_nocloud <<-EOF
#userdata
EOF
CLOUD="nocloud" atf_check \
CLOUD="nocloud" atf_check -e match:"NoCloud 'meta-data' is empty" \
sh -c ". \"$lib\"; init__save_userdata"
atf_check -o match:"^#userdata" cat var/lib/cloud/user-data
}