mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
wal-g-exporter: Handle empty backup list, for new buckets.
This commit is contained in:
committed by
Tim Abbott
parent
425abd83fc
commit
4f67c1dbf1
@@ -107,7 +107,7 @@ class WalGPrometheusServer(BaseHTTPRequestHandler):
|
||||
text=True,
|
||||
env=modified_env,
|
||||
)
|
||||
data = json.loads(backup_list_output)
|
||||
data = json.loads(backup_list_output) if backup_list_output else []
|
||||
backup_count(len(data), {"bucket": bucket})
|
||||
|
||||
backup_total_compressed_size_bytes(
|
||||
|
Reference in New Issue
Block a user