From c0d638734c975dcfccd89b7e294d533a96f31fd6 Mon Sep 17 00:00:00 2001 From: Dragomir Penev <6687393+dragomirp@users.noreply.github.com> Date: Mon, 8 Jul 2024 15:03:29 +0300 Subject: [PATCH] Reduce the size of the library (#183) --- lib/charms/data_platform_libs/v0/data_interfaces.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/charms/data_platform_libs/v0/data_interfaces.py b/lib/charms/data_platform_libs/v0/data_interfaces.py index 74b7f4f7..a2162aa0 100644 --- a/lib/charms/data_platform_libs/v0/data_interfaces.py +++ b/lib/charms/data_platform_libs/v0/data_interfaces.py @@ -2609,8 +2609,6 @@ def set_version(self, relation_id: int, version: str) -> None: def set_subordinated(self, relation_id: int) -> None: """Raises the subordinated flag in the application relation databag. - The flag will be used to evaluate additional checks before emitting provider events. - Args: relation_id: the identifier for a particular relation. """ @@ -2861,13 +2859,10 @@ def _on_relation_changed_event(self, event: RelationChangedEvent) -> None: is_subordinate = event.relation.data[key].get("subordinated") == "true" if is_subordinate: - # Check that provider units have joined. if not remote_unit_data: - logger.debug("No provider units are available.") return if remote_unit_data.get("state") != "ready": - logger.debug("Subordinate provider unit not ready.") return # Check which data has changed to emit customs events.