We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e3cc00 + b32cbab commit a6103dbCopy full SHA for a6103db
1 file changed
patroni/ctl.py
@@ -1750,7 +1750,7 @@ def get_cluster_service_info(cluster: Dict[str, Any]) -> List[str]:
1750
1751
# latest_end_lsn (and consequently lag_to_primary) is only registered on standby leaders - we just combine all
1752
# the member dicts to find it
1753
- r = {'latest_end_lsn': str, 'lag_to_primary': int}
+ r = {'latest_end_lsn': '', 'lag_to_primary': 0}
1754
if 'members' in cluster:
1755
for m in cluster['members']:
1756
if 'latest_end_lsn' in m and 'lag_to_primary' in m:
0 commit comments