mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 06:26:57 +02:00
oem/ami: fix ami_all.json
This was not a valid json document before. Actually make this an object.
This commit is contained in:
parent
e4e847dc10
commit
64b10c1faf
@ -130,7 +130,7 @@ for r in "${!HVM_AMIS[@]}"; do
|
||||
done
|
||||
HVM_ALL="${HVM_ALL#|}"
|
||||
|
||||
AMI_ALL="\"amis\": ["
|
||||
AMI_ALL="{\n \"amis\": ["
|
||||
for r in "${ALL_REGIONS[@]}"; do
|
||||
AMI_ALL+="\n {"
|
||||
AMI_ALL+="\n \"name\": \"${r}\","
|
||||
@ -139,7 +139,7 @@ for r in "${ALL_REGIONS[@]}"; do
|
||||
AMI_ALL+="\n },"
|
||||
done
|
||||
AMI_ALL="${AMI_ALL%,}"
|
||||
AMI_ALL+="\n]"
|
||||
AMI_ALL+="\n ]\n}"
|
||||
|
||||
# wait for each subshell individually to report errors
|
||||
WAIT_FAILED=0
|
||||
|
Loading…
Reference in New Issue
Block a user