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

Commit adf4349

Browse files
committed
oem/azure: split on newlines instead of whitespace
Some of the regions have spaces in the name. This causes problems when we build the XML list of regions.
1 parent c6ff07a commit adf4349

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

oem/azure/replicate-image.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ if [ -z $subscription_id ]; then
2525
subscription_id=$(getSubscriptionId)
2626
fi
2727

28+
IFS=$'\n'
2829
requestBody="<ReplicationInput xmlns=\"http://schemas.microsoft.com/windowsazure\">
2930
<TargetLocations>"
3031
for region in $(getRegions); do
@@ -38,6 +39,7 @@ requestBody+="
3839
<Version>${VERSION}</Version>
3940
</ComputeImageAttributes>
4041
</ReplicationInput>"
42+
unset IFS
4143

4244
url="$(getManagementEndpoint)/${subscription_id}/services/images/${image_name}/replicate"
4345

0 commit comments

Comments
 (0)