File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 2929 R_QUERY="[? tags.\""$ACNCI_BUILDTAG_DEFINITIONID"\" && tags.\""$ACNCI_BUILDTAG_CREATEDBYAPPID"\"]"
3030 INFRA_RG_LIST=$(az group list --query "$R_QUERY" \
3131 --tag "$ACNCI_BUILDTAG_DEFINITIONID"="$SYSTEM_DEFINITIONID" \
32- --tag "$ACNCI_BUILDTAG_CREATEDBYAPPID"="$servicePrincipalId" -o json)
32+ --tag "$ACNCI_BUILDTAG_CREATEDBYAPPID"="$servicePrincipalId" -o json | jq -rc '.[]' )
3333 echo "$INFRA_RG_LIST"
3434
3535 INFRA_RG_LENGTH=$(echo "$INFRA_RG_LIST" | jq length)
Original file line number Diff line number Diff line change 3838 R_LIST=$(az resource list \
3939 --query "$R_QUERY" \
4040 --tag "$ACNCI_BUILDTAG_DEFINITIONID"="$SYSTEM_DEFINITIONID" \
41- --tag "$ACNCI_BUILDTAG_CREATEDBYAPPID"="$servicePrincipalId" -o json)
41+ --tag "$ACNCI_BUILDTAG_CREATEDBYAPPID"="$servicePrincipalId" -o json | jq -rc '.[]' )
4242 echo $R_LIST
4343 # Length of resource list
4444 R_LIST_LENGTH=$(echo "$R_LIST" | jq length)
You can’t perform that action at this time.
0 commit comments