Skip to content

Commit

Permalink
Fix issue with newline in quoted param (#2494)
Browse files Browse the repository at this point in the history
When there are multiple locks, the ids need to be passed as separate parameters
but the quoted string treated as a single, newline separated value
  • Loading branch information
stuartleeks authored Aug 23, 2022
1 parent edfe0f5 commit 58e47f6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions devops/scripts/destroy_env_no_terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ fi
locks=$(az group lock list -g "${core_tre_rg}" --query [].id -o tsv | tr -d \')
if [ -n "${locks:-}" ]
then
echo "Deleting locks..."
az resource lock delete --ids "${locks}"
for lock in $locks
do
echo "Deleting lock ${lock}..."
az resource lock delete --ids "${lock}"
done
fi

delete_resource_diagnostic() {
Expand Down

0 comments on commit 58e47f6

Please sign in to comment.