Skip to content

Commit

Permalink
Add logging when ip is set to None
Browse files Browse the repository at this point in the history
  • Loading branch information
weiiwang01 committed Oct 18, 2023
1 parent 49ef065 commit d9db9a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/charms/traefik_k8s/v2/ingress.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,8 @@ def _publish_unit_data(
ip = None
else:
ip = str(binding_ip)
if ip is None:
log.error("failed to retrieve ip information from juju")

unit_databag = relation.data[self.unit]
try:
Expand Down

0 comments on commit d9db9a3

Please sign in to comment.