Skip to content

Commit

Permalink
provider also adds flag to peer relation
Browse files Browse the repository at this point in the history
  • Loading branch information
skourta committed Dec 5, 2024
1 parent 94ccde1 commit 6a1c834
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/charms/opensearch/v0/opensearch_relation_peer_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ def _on_peer_cluster_relation_changed(self, event: RelationChangedEvent):
if not (data := event.relation.data.get(event.app)):
return

if self._get_security_index_initialised():
self.charm.peers_data.put(Scope.APP, "security_index_initialised", True)

# get list of relations with this orchestrator
target_relation_ids = [
rel.id for rel in self.charm.model.relations[self.relation_name] if len(rel.units) > 0
Expand Down

0 comments on commit 6a1c834

Please sign in to comment.