Skip to content

Commit

Permalink
add dot before dns name
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Jun 10, 2024
1 parent b02ac86 commit b960932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hsds/util/s3Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _get_client_kwargs(self):
kwargs["aws_session_token"] = self._aws_session_token
if self._s3_gateway:
host = urlparse(self._s3_gateway).hostname
if not host.endswith("amazonaws.com"):
if not host.endswith(".amazonaws.com"):
# let boto sort out the endpoint if it's on aws
# for third party s3 compatible services (e.g. minio), set it here
kwargs["endpoint_url"] = self._s3_gateway
Expand Down

0 comments on commit b960932

Please sign in to comment.