Skip to content

Commit

Permalink
Validate run id in cron.py
Browse files Browse the repository at this point in the history
  • Loading branch information
peitilisc committed May 3, 2021
1 parent 8a24d4c commit 428a633
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 428a633

Please sign in to comment.