Skip to content

Commit

Permalink
Merge pull request #75 from tilezen/improverunid
Browse files Browse the repository at this point in the history
Validate run id in cron.py
  • Loading branch information
peitili authored May 3, 2021
2 parents 8a24d4c + 428a633 commit 53931bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions batch-setup/cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import boto3
from botocore.exceptions import ClientError
from collections import namedtuple
from run_id import assert_run_id_format


# locations stores the S3 locations to use for tile assets, RAWR tiles, meta
Expand Down Expand Up @@ -528,6 +529,7 @@ def is_power_of_two(x):
'planet-url argument.')

args = parser.parse_args()
assert_run_id_format(args.run_id)

planet_md5_url = args.planet_md5_url or args.planet_url + ".md5"

Expand Down

0 comments on commit 53931bc

Please sign in to comment.