Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit c6ff07a

Browse files
committed
oem/azure: normalize endpoint prefixes
Some regions lead with a '.' and others do not...
1 parent 93fc3ca commit c6ff07a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

oem/azure/common.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ getManagementEndpoint() {
99
}
1010

1111
getStorageEndpointPrefix() {
12-
azure account env show --environment=$(getAzureEnvironment) --json | \
13-
jq '.storageEndpointSuffix' --raw-output
12+
prefix=$(azure account env show --environment=$(getAzureEnvironment) --json | \
13+
jq '.storageEndpointSuffix' --raw-output)
14+
echo "${prefix##.}"
1415
}
1516

1617
getBlobStorageEndpoint() {
17-
echo "blob$(getStorageEndpointPrefix)"
18+
echo "blob.$(getStorageEndpointPrefix)"
1819
}
1920

2021
getSubscriptionId() {

0 commit comments

Comments
 (0)