Skip to content

Commit

Permalink
Fix az janitor query (#182)
Browse files Browse the repository at this point in the history
* Update janitor.yaml

Signed-off-by: Chandan Pinjani <chandan.pinjani@suse.com>

* Update janitor.yaml

Co-authored-by: Parthvi Vala <parthvi.vala@suse.com>
Signed-off-by: Chandan Pinjani <chandan.pinjani@suse.com>

---------

Signed-off-by: Chandan Pinjani <chandan.pinjani@suse.com>
Co-authored-by: Parthvi Vala <parthvi.vala@suse.com>
  • Loading branch information
cpinjani and valaparthvi authored Oct 11, 2024
1 parent 3d5dfcb commit d3534e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/janitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
continue-on-error: true
run: |
# Get the AKS clusters by prefix
for rg in $(az group list --query "[?contains(name,'auto-aks-hp-ci')].{Name: name}" | jq -r ".[] | .Name" 2> /dev/null); do
for rg in $(az group list --query "[?starts_with(name,'auto-aks-hp-ci')].name" | jq -r ".[]" 2> /dev/null); do
echo "Deleting AKS resource group: $rg"
az group delete --name $rg --yes
done
Expand Down

0 comments on commit d3534e9

Please sign in to comment.