Skip to content

Commit 1d2fb49

Browse files
Update az_sig_publish
Co-authored-by: James Le Cuirot <jlecuirot@microsoft.com>
1 parent 3f850cd commit 1d2fb49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

az_sig_publish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function get-target-regions() {
6363
fi
6464

6565
echo "Fetching target regions"
66-
TARGET_REGIONS=$(az account list-locations -o json | jq -r '.[] | select( .metadata.regionType != "Logical" ) | .name' | sort | grep -v -E "(${BLACKLISTED_TARGET_REGIONS// /|})" | tr '\n' ' ')
66+
TARGET_REGIONS=$(az account list-locations -o json | jq --args -r '[.[] | select(.metadata.regionType != "Logical") | .name] - $ARGS.positional | sort | join(" ")' ${BLACKLISTED_TARGET_REGIONS})
6767
}
6868

6969
function ensure-vhd-uri-exists() {

0 commit comments

Comments
 (0)