Skip to content

Commit

Permalink
Update indexd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao authored Dec 8, 2023
1 parent 8e4a22a commit 8295a6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fence/blueprints/data/indexd.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ def _log_signed_url_data_info(indexed_file, user_sub, requested_protocol):
authz = indexed_file.index_document.get("authz")

# the behavior later on is to pick the 1st location as the signed URL if a protocol is not requested
protocol = requested_protocol or indexed_file.indexed_file_locations[0].protocol
protocol = requested_protocol
if not protocol and indexed_file.indexed_file_locations:
protocol = indexed_file.indexed_file_locations[0].protocol

# figure out which bucket was used based on the protocol
bucket = ""
Expand Down

0 comments on commit 8295a6e

Please sign in to comment.