From 7ac4e83acc2e081054ea800ae98941abeb65e797 Mon Sep 17 00:00:00 2001 From: Dani Pozo Date: Thu, 7 Dec 2023 12:32:32 +0100 Subject: [PATCH] Fix parsing virtual hosted S3 URI --- utils/backupview/clickhouse_backupview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/backupview/clickhouse_backupview.py b/utils/backupview/clickhouse_backupview.py index c9eac87f0ae..4ba1f391d02 100755 --- a/utils/backupview/clickhouse_backupview.py +++ b/utils/backupview/clickhouse_backupview.py @@ -1256,7 +1256,7 @@ class S3URI: 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