Skip to content

Commit

Permalink
Fix parsing virtual hosted S3 URI
Browse files Browse the repository at this point in the history
  • Loading branch information
danipozo committed Dec 7, 2023
1 parent b3f2244 commit 7ac4e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/backupview/clickhouse_backupview.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ def __parse_virtual_hosted(self, parsed_url):
host = parsed_url.netloc
if host.find(".s3") == -1:
return False
self.bucket, new_host = path.split(".s3", maxsplit=1)
self.bucket, new_host = host.split(".s3", maxsplit=1)
if len(self.bucket) < 3:
return False
new_host = "s3" + new_host
Expand Down

0 comments on commit 7ac4e83

Please sign in to comment.