Skip to content

Commit

Permalink
Endpoint field in SDG S3 Secret is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed Oct 9, 2024
1 parent b1d174a commit a59756c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions standalone/standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -1501,8 +1501,10 @@ def sdg_data_fetch(
def decode_base64(data):
return base64.b64decode(data).decode("utf-8")

endpoint = decode_base64(secret.data.get("endpoint"))
validate_url(endpoint)
if secret.data.get("endpoint"):
endpoint = decode_base64(secret.data.get("endpoint"))
validate_url(endpoint)

if not all(
[
secret.data.get("bucket"),
Expand Down

0 comments on commit a59756c

Please sign in to comment.