Skip to content

Commit 2e96ca2

Browse files
Lock file maintenance Python dependencies (#632)
* Lock file maintenance Python dependencies * Backoff lib juju --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dragomir Penev <[email protected]>
1 parent 085f68a commit 2e96ca2

File tree

3 files changed

+297
-290
lines changed

3 files changed

+297
-290
lines changed

lib/charms/data_platform_libs/v0/data_interfaces.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ def _on_relation_changed_event(self, event: RelationChangedEvent) -> None:
14571457
class ProviderData(Data):
14581458
"""Base provides-side of the data products relation."""
14591459

1460-
DATABASE_FIELD = "database"
1460+
RESOURCE_FIELD = "database"
14611461

14621462
def __init__(
14631463
self,
@@ -1626,7 +1626,7 @@ def _update_relation_data(self, relation: Relation, data: Dict[str, str]) -> Non
16261626
req_secret_fields = []
16271627

16281628
keys = set(data.keys())
1629-
if self.fetch_relation_field(relation.id, self.DATABASE_FIELD) is None and (
1629+
if self.fetch_relation_field(relation.id, self.RESOURCE_FIELD) is None and (
16301630
keys - {"endpoints", "read-only-endpoints", "replset"}
16311631
):
16321632
raise PrematureDataAccessError(
@@ -3305,7 +3305,7 @@ class KafkaRequiresEvents(CharmEvents):
33053305
class KafkaProviderData(ProviderData):
33063306
"""Provider-side of the Kafka relation."""
33073307

3308-
DATABASE_FIELD = "topic"
3308+
RESOURCE_FIELD = "topic"
33093309

33103310
def __init__(self, model: Model, relation_name: str) -> None:
33113311
super().__init__(model, relation_name)
@@ -3556,7 +3556,7 @@ class OpenSearchRequiresEvents(CharmEvents):
35563556
class OpenSearchProvidesData(ProviderData):
35573557
"""Provider-side of the OpenSearch relation."""
35583558

3559-
DATABASE_FIELD = "index"
3559+
RESOURCE_FIELD = "index"
35603560

35613561
def __init__(self, model: Model, relation_name: str) -> None:
35623562
super().__init__(model, relation_name)

0 commit comments

Comments
 (0)