Skip to content

Commit

Permalink
fix(GC/azure): change timeCreated to createdTime
Browse files Browse the repository at this point in the history
  • Loading branch information
smerle33 committed Dec 11, 2024
1 parent f03e3d3 commit 9895aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleanup/azure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ az account show >/dev/null || \
resource_group_name="${build_type}-packer-builds"

## Remove resources in the "Resource Group" older than the threshold
found_resource_ids="$(az resource list --resource-group="${resource_group_name}" | jq -r ".[] | select(.timeCreated < (\"${creation_date_threshold}\")) | .id")"
found_resource_ids="$(az resource list --resource-group="${resource_group_name}" | jq -r ".[] | select(.createdTime < (\"${creation_date_threshold}\")) | .id")"

if [ -n "${found_resource_ids}" ]
then
Expand Down

0 comments on commit 9895aea

Please sign in to comment.