Skip to content

Commit

Permalink
fix: lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu1nness committed Sep 3, 2024
1 parent 3ec731e commit f063c73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ def peers_units(self) -> list[Unit]:
@property
def db_initialised(self) -> bool:
"""Check if MongoDB is initialised."""
return json.loads(self.app_peer_data.get("db_initialised") or "false")
# Needs to lowercase it so it also work with older versions
return json.loads(self.app_peer_data.get("db_initialised").lower() or "false")

@property
def role(self) -> str:
Expand Down

0 comments on commit f063c73

Please sign in to comment.