Skip to content

Commit

Permalink
fix unit fixed setting postgresql version into app_peer_data
Browse files Browse the repository at this point in the history
  • Loading branch information
BalabaDmitri committed Apr 17, 2024
1 parent d0f1610 commit 4738de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ def _validate_database_version(self):

if self.unit.is_leader() and peer_db_version is None:
_psql_version = self._patroni.get_postgresql_version()
if _psql_version is not None:
if not _psql_version:
self.app_peer_data.update({"database-version": _psql_version})
return

Expand Down

0 comments on commit 4738de9

Please sign in to comment.