From 56902d72063b77081659dd5328a3922cbc42894c Mon Sep 17 00:00:00 2001 From: Hemanth Nakkina Date: Thu, 2 Nov 2023 08:40:18 +0530 Subject: [PATCH] Fix check_relation_handlers_ready Recent changes on charm-ops-sunbeam introduces arugments to check_relation_handlers_ready function. Add event argument to check_relation_handlers_ready. Change zuul project templates to openstack-python3-charm-jobs Change-Id: Ib2f65a8ea728bea05b20a54a6df8a047c76b24a3 --- charms/ovn-central-k8s/.zuul.yaml | 2 +- charms/ovn-central-k8s/src/charm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charms/ovn-central-k8s/.zuul.yaml b/charms/ovn-central-k8s/.zuul.yaml index 74577da0..0a41ba84 100644 --- a/charms/ovn-central-k8s/.zuul.yaml +++ b/charms/ovn-central-k8s/.zuul.yaml @@ -1,6 +1,6 @@ - project: templates: - - openstack-python3-charm-yoga-jobs + - openstack-python3-charm-jobs - openstack-cover-jobs - microk8s-func-test vars: diff --git a/charms/ovn-central-k8s/src/charm.py b/charms/ovn-central-k8s/src/charm.py index 2f9ae22d..ad0971ee 100755 --- a/charms/ovn-central-k8s/src/charm.py +++ b/charms/ovn-central-k8s/src/charm.py @@ -452,7 +452,7 @@ class OVNCentralOperatorCharm(sunbeam_charm.OSBaseOperatorCharmK8S): def configure_unit(self, event: ops.framework.EventBase) -> None: """Run configuration on this unit.""" self.check_leader_ready() - self.check_relation_handlers_ready() + self.check_relation_handlers_ready(event) self.open_ports() self.init_container_services() # Do not check_pebble_handlers_ready as northd is started later.