Skip to content

Commit

Permalink
Merge branch 'main' into ISD-1179-ensure-ca-certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
amandahla authored Oct 18, 2023
2 parents 94ddbd4 + 9204728 commit 90e33a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/charms/data_platform_libs/v0/data_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def _on_topic_requested(self, event: TopicRequestedEvent):

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

PYDEPS = ["ops>=2.0.0"]

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

# We need to set relation alias also on the application level so,
# it will be accessible in show-unit juju command, executed for a consumer application unit
self.update_relation_data(relation_id, {"alias": available_aliases[0]})

def _emit_aliased_event(self, event: RelationChangedEvent, event_name: str) -> None:
"""Emit an aliased event to a particular relation if it has an alias.
Expand Down

0 comments on commit 90e33a8

Please sign in to comment.