Skip to content

Commit

Permalink
Re-add unnecessarily removed code
Browse files Browse the repository at this point in the history
  • Loading branch information
shayancanonical committed Sep 5, 2024
1 parent b7d7cde commit 10d5405
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,9 @@ def _handle_potential_cluster_crash_scenario(self) -> bool:
self.peers.data[unit].get("member-state", "unknown") for unit in self.peers.units
}

# Add state for this unit (self.peers.units does not include this unit)
all_states.add("offline")

total_cluster_node_count = self.total_cluster_node_count
if (
all_states == {"offline"} and self.unit.is_leader()
Expand Down

0 comments on commit 10d5405

Please sign in to comment.