Skip to content

Commit

Permalink
fix: more stable version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu1nness committed Sep 2, 2024
1 parent 3a75cc0 commit 6dc2024
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 @@ -318,7 +318,7 @@ 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", "false"))
return json.loads(self.app_peer_data.get("db_initialised") or "false")

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

0 comments on commit 6dc2024

Please sign in to comment.