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-Id: If5e1bc20b9fc3afb8a7d538357b29b004415a894
This commit is contained in:
Hemanth Nakkina
2023-11-02 08:38:37 +05:30
parent ac9e73ce77
commit f9a3531311

View File

@@ -243,7 +243,7 @@ class BindOperatorCharm(sunbeam_charm.OSBaseOperatorCharmK8S):
def configure_unit(self, event: ops.EventBase) -> None:
"""Run configuration on this unit."""
self.check_leader_ready()
self.check_relation_handlers_ready()
self.check_relation_handlers_ready(event)
self.update_owned_relation_data()
self.open_ports()
self.init_container_services()