Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit 05c0723

Browse files
chore: update charm libraries (#62)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6e646d6 commit 05c0723

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/charms/data_platform_libs/v0/data_interfaces.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def _on_topic_requested(self, event: TopicRequestedEvent):
320320

321321
# Increment this PATCH version before using `charmcraft publish-lib` or reset
322322
# to 0 if you are raising the major API version
323-
LIBPATCH = 19
323+
LIBPATCH = 20
324324

325325
PYDEPS = ["ops>=2.0.0"]
326326

@@ -1674,6 +1674,10 @@ def _assign_relation_alias(self, relation_id: int) -> None:
16741674
if relation:
16751675
relation.data[self.local_unit].update({"alias": available_aliases[0]})
16761676

1677+
# We need to set relation alias also on the application level so,
1678+
# it will be accessible in show-unit juju command, executed for a consumer application unit
1679+
self.update_relation_data(relation_id, {"alias": available_aliases[0]})
1680+
16771681
def _emit_aliased_event(self, event: RelationChangedEvent, event_name: str) -> None:
16781682
"""Emit an aliased event to a particular relation if it has an alias.
16791683

0 commit comments

Comments
 (0)