From 6a1c83428184506367a9c991fce2103efed5511d Mon Sep 17 00:00:00 2001 From: Smail KOURTA Date: Thu, 5 Dec 2024 14:20:24 +0000 Subject: [PATCH] provider also adds flag to peer relation --- lib/charms/opensearch/v0/opensearch_relation_peer_cluster.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/charms/opensearch/v0/opensearch_relation_peer_cluster.py b/lib/charms/opensearch/v0/opensearch_relation_peer_cluster.py index 1506577e8..f31906c15 100644 --- a/lib/charms/opensearch/v0/opensearch_relation_peer_cluster.py +++ b/lib/charms/opensearch/v0/opensearch_relation_peer_cluster.py @@ -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