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