mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
oem/azure: normalize endpoint prefixes
Some regions lead with a '.' and others do not...
This commit is contained in:
parent
93fc3cad4b
commit
c6ff07a29f
@ -9,12 +9,13 @@ getManagementEndpoint() {
|
||||
}
|
||||
|
||||
getStorageEndpointPrefix() {
|
||||
azure account env show --environment=$(getAzureEnvironment) --json | \
|
||||
jq '.storageEndpointSuffix' --raw-output
|
||||
prefix=$(azure account env show --environment=$(getAzureEnvironment) --json | \
|
||||
jq '.storageEndpointSuffix' --raw-output)
|
||||
echo "${prefix##.}"
|
||||
}
|
||||
|
||||
getBlobStorageEndpoint() {
|
||||
echo "blob$(getStorageEndpointPrefix)"
|
||||
echo "blob.$(getStorageEndpointPrefix)"
|
||||
}
|
||||
|
||||
getSubscriptionId() {
|
||||
|
Loading…
Reference in New Issue
Block a user