fix(oem/ami): Fix uploading AMI id files, broken by a55f566b.

This commit is contained in:
Michael Marineau 2014-03-22 15:17:25 -07:00
parent 441a982a39
commit 68af44d961

View File

@ -60,6 +60,16 @@ if [[ ! -n "$VER" ]]; then
exit 1
fi
if [[ -z "$GROUP" ]]; then
if [[ "$BOARD" == "amd64-generic" ]]; then
GROUP="dev-channel"
elif [[ "$BOARD" == "amd64-usr" ]]; then
GROUP="alpha"
else
GROUP="$BOARD"
fi
fi
declare -A AMIS
for r in "${!AKI[@]}"; do
AMI=$(ec2-describe-images --region=${r} -F name="CoreOS-$GROUP-$VER" \