mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
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.
This commit is contained in:
parent
c6ff07a29f
commit
adf4349203
@ -25,6 +25,7 @@ if [ -z $subscription_id ]; then
|
||||
subscription_id=$(getSubscriptionId)
|
||||
fi
|
||||
|
||||
IFS=$'\n'
|
||||
requestBody="<ReplicationInput xmlns=\"http://schemas.microsoft.com/windowsazure\">
|
||||
<TargetLocations>"
|
||||
for region in $(getRegions); do
|
||||
@ -38,6 +39,7 @@ requestBody+="
|
||||
<Version>${VERSION}</Version>
|
||||
</ComputeImageAttributes>
|
||||
</ReplicationInput>"
|
||||
unset IFS
|
||||
|
||||
url="$(getManagementEndpoint)/${subscription_id}/services/images/${image_name}/replicate"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user