Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ui/operator_ui/spiloutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def read_basebackups(
backup_prefix = f'{prefix}{pg_cluster}{suffix}/wal/{vp}/basebackups_005/'
logger.info(f"{bucket}/{backup_prefix}")

paginator = client('s3').get_paginator('list_objects_v2')
paginator = client('s3', endpoint_url=AWS_ENDPOINT).get_paginator('list_objects_v2')
pages = paginator.paginate(Bucket=bucket, Prefix=backup_prefix)

for page in pages:
Expand All @@ -334,7 +334,7 @@ def read_basebackups(
if not key.endswith("backup_stop_sentinel.json"):
continue

response = client('s3').get_object(Bucket=bucket, Key=key)
response = client('s3', endpoint_url=AWS_ENDPOINT).get_object(Bucket=bucket, Key=key)
backup_info = loads(response["Body"].read().decode("utf-8"))
last_modified = response["LastModified"].astimezone(timezone.utc).isoformat()

Expand Down