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 8295a6e commit 8cbaa5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fence/blueprints/data/indexd.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _log_signed_url_data_info(indexed_file, user_sub, requested_protocol):
acl = indexed_file.index_document.get("acl")
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
# the behavior later on is to pick the 1st location as the signed URL if a protocol is not requested, if available
protocol = requested_protocol
if not protocol and indexed_file.indexed_file_locations:
protocol = indexed_file.indexed_file_locations[0].protocol
Expand Down

0 comments on commit 8cbaa5f

Please sign in to comment.