Skip to content

Commit 9204728

Browse files
chore: update charm libraries (#71)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: arturo-seijas <102022572+arturo-seijas@users.noreply.github.com>
1 parent 526d717 commit 9204728

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/charms/data_platform_libs/v0/data_interfaces.py

Lines changed: 5 additions & 1 deletion
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)