Skip to content

Commit bb41d82

Browse files
committed
fix: correct instance backup bucket name
1 parent 161415f commit bb41d82

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

dcor_control/cli/status.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ def status():
6565

6666
# Backup bucket
6767
try:
68-
bbi = get_bucket_info("000000000-backup")
68+
bucket_prefix = get_ckan_config_option(
69+
"dcor_object_store.bucket_name").format(organization_id="")
70+
bbi = get_bucket_info(f"{bucket_prefix}000000000-backup")
6971
except BaseException:
70-
click.echo("Instance backup bucket does not exist.")
72+
click.echo("Instance backup does not exist (yet).")
7173
else:
7274
click.echo(f"S3 instance backup number: {bbi['num_other']}")
7375
click.echo(f"S3 instance backup size: "

0 commit comments

Comments
 (0)