Skip to content

Commit b32cbab

Browse files
author
avandras
committed
Fix wrong initialization
1 parent 1e3cc00 commit b32cbab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

patroni/ctl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1750,7 +1750,7 @@ def get_cluster_service_info(cluster: Dict[str, Any]) -> List[str]:
17501750

17511751
# latest_end_lsn (and consequently lag_to_primary) is only registered on standby leaders - we just combine all
17521752
# the member dicts to find it
1753-
r = {'latest_end_lsn': str, 'lag_to_primary': int}
1753+
r = {'latest_end_lsn': '', 'lag_to_primary': 0}
17541754
if 'members' in cluster:
17551755
for m in cluster['members']:
17561756
if 'latest_end_lsn' in m and 'lag_to_primary' in m:

0 commit comments

Comments
 (0)