Skip to content

Commit

Permalink
scraper: pass values to In as a set instead of individually
Browse files Browse the repository at this point in the history
The function signature is `In(container, msg=None)`, so
`ipv4Prefix` is being considered the single value in the
container, and `ipv6Prefix` is being mapped to `msg`.
  • Loading branch information
cgsheeh committed Jan 18, 2022
1 parent 807a4b7 commit ac4d918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/scrape-manifest-ip-ranges.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def get_gcp_ips():
'prefixes': All(all_required_gcp_regions_exist, [
{
# One of these tags must be present, and it's value must be an IP block.
In('ipv4Prefix', 'ipv6Prefix'): is_ip_address_network,
In({'ipv4Prefix', 'ipv6Prefix'}): is_ip_address_network,
'scope': str,
'service': str,
},
Expand Down

0 comments on commit ac4d918

Please sign in to comment.