oem/ami: fix ami_all.json

This was not a valid json document before. Actually make this an object.
This commit is contained in:
Alex Crawford 2015-02-06 14:13:54 -08:00
parent e4e847dc10
commit 64b10c1faf

View File

@ -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