Skip to content

Commit

Permalink
scraper: switch allowable file sizes for gcp/aws
Browse files Browse the repository at this point in the history
  • Loading branch information
cgsheeh committed Jan 18, 2022
1 parent 9260d32 commit 241b851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/scrape-manifest-ip-ranges.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def get_aws_ips():
sys.exit('HTTP response from Amazon was not 200 OK')

# Sanity check: ensure the file is an appropriate size
if len(ip_ranges_response.content) < 8000:
if len(ip_ranges_response.content) < 88000:
sys.exit('The retrieved AWS JSON document is smaller than the minimum allowable file size')


Expand Down Expand Up @@ -255,7 +255,7 @@ def get_gcp_ips():
sys.exit('HTTP response from Google was not 200 OK')

# Sanity check: ensure the file is an appropriate size
if len(ip_ranges_response.content) < 88000:
if len(ip_ranges_response.content) < 8000:
sys.exit('The retrieved GCP JSON document is smaller than the minimum allowable file size')

# JSON Schema for the Google IP Ranges JSON document
Expand Down

0 comments on commit 241b851

Please sign in to comment.