This repository was archived by the owner on Sep 18, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,13 @@ getManagementEndpoint() {
99}
1010
1111getStorageEndpointPrefix () {
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
1617getBlobStorageEndpoint () {
17- echo " blob$( getStorageEndpointPrefix) "
18+ echo " blob. $( getStorageEndpointPrefix) "
1819}
1920
2021getSubscriptionId () {
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ if [ -z $subscription_id ]; then
2525 subscription_id=$( getSubscriptionId)
2626fi
2727
28+ IFS=$' \n '
2829requestBody=" <ReplicationInput xmlns=\" http://schemas.microsoft.com/windowsazure\" >
2930 <TargetLocations>"
3031for region in $( getRegions) ; do
@@ -38,6 +39,7 @@ requestBody+="
3839 <Version>${VERSION} </Version>
3940 </ComputeImageAttributes>
4041</ReplicationInput>"
42+ unset IFS
4143
4244url=" $( getManagementEndpoint) /${subscription_id} /services/images/${image_name} /replicate"
4345
You can’t perform that action at this time.
0 commit comments