Skip to content

Commit

Permalink
Only sign urls from pkgstore
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Mar 6, 2018
1 parent b99ea99 commit 5961ea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions planner/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def client():


def s3_path(path):
if path.startswith('http'):
bucket = PKGSTORE_BUCKET
bucket = PKGSTORE_BUCKET
if path.startswith('http') and '/{}/'.format(bucket) in path:
parsed_url = urllib.parse.urlparse(path)
path = parsed_url.path.lstrip('/')
if path.startswith(bucket):
Expand Down

0 comments on commit 5961ea2

Please sign in to comment.