Skip to content

Commit

Permalink
fix(index): fix var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Avantol13 committed Mar 10, 2020
1 parent eacd20a commit 1062432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fence/blueprints/data/indexd.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,8 @@ def get_signed_url(
bucket_name = self.bucket_name()
bucket = s3_buckets.get(bucket_name)

if current_bucket and current_bucket.get("endpoint_url"):
http_url = current_bucket["endpoint_url"].strip("/") + "/{}/{}".format(
if bucket and bucket.get("endpoint_url"):
http_url = bucket["endpoint_url"].strip("/") + "/{}/{}".format(
self.parsed_url.netloc, self.parsed_url.path.strip("/")
)
else:
Expand Down

0 comments on commit 1062432

Please sign in to comment.