From c6ff07a29fe7665eee053ea04e10041437df67e4 Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Sat, 11 Jun 2016 09:25:58 -0700 Subject: [PATCH] oem/azure: normalize endpoint prefixes Some regions lead with a '.' and others do not... --- oem/azure/common.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/oem/azure/common.sh b/oem/azure/common.sh index 08e040629f..666e30248e 100644 --- a/oem/azure/common.sh +++ b/oem/azure/common.sh @@ -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() {