Skip to content

Commit

Permalink
[QOLDEV-833] fix image creation logic
Browse files Browse the repository at this point in the history
- Double-evaluate image ID variable correctly
  • Loading branch information
ThrawnCA committed Dec 11, 2024
1 parent 03390ef commit c086d46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-CKAN.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ create-amis () {
run-playbook "AMI-templates.yml"
ANSIBLE_EXTRA_VARS="$ANSIBLE_EXTRA_VARS timestamp=`date -u +%Y-%m-%dT%H:%M:%SZ` image_version=$IMAGE_VERSION"
for layer in Batch Web Solr; do
if [ "${layer}_IMAGE_ID" != "" ]; then
eval "image=\$${layer}_IMAGE_ID"
if [ "$image" = "" ]; then
run-playbook "create-AMI" "layer=$layer" & eval "${layer}_PID=$!"
fi
done
Expand Down

0 comments on commit c086d46

Please sign in to comment.