1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-14 19:02:45 +03:00

imds: read autodetected cloud provider

This commit is contained in:
Natanael Copa 2024-07-26 22:33:56 +00:00 committed by Jake Buchholz Göktürk
parent 7a87dfe08d
commit b2821a7a69

View File

@ -87,6 +87,10 @@ _imds_nic_index() { cat "/sys/class/net/$1/address"; }
### load cloud-specific variables and functions
if [ "$CLOUD" = "auto" ]; then
CLOUD=$(cat "$TINY_CLOUD_VAR/.autodetect")
fi
if [ ! -d "$LIBDIR/tiny-cloud/cloud/$CLOUD" ]; then
echo "ERROR: Unknown Cloud '$CLOUD'" >&2
fi