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:
parent
c4d2592e41
commit
a90bf444d3
2
bin/imds
2
bin/imds
@ -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
|
||||
|
||||
@ -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" \
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user