Skip to content

Commit

Permalink
fix: resolve azure location for cvm
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Bailey committed Jan 15, 2025
1 parent b822f30 commit e5e7459
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vhdbuilder/packer/test/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ if [ "${OS_TYPE,,}" == "linux" ]; then
echo "PACKER_BUILD_LOCATION must be set for linux builds"
exit 1
fi
AZURE_LOCATION=$PACKER_BUILD_LOCATION
if [ "${ENVIRONMENT,,}" == "test" ] && [ "${IMG_SKU}" == "20_04-lts-cvm" ]; then
AZURE_LOCATION=$CVM_PACKER_BUILD_LOCATION
else
AZURE_LOCATION=$PACKER_BUILD_LOCATION
fi
fi

if [ "${OS_TYPE,,}" == "linux" ]; then
Expand Down

0 comments on commit e5e7459

Please sign in to comment.