Skip to content

Commit

Permalink
chore: fix for a fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alithethird committed Aug 29, 2024
1 parent d2434d7 commit 7fa3720
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/charm_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,10 +817,12 @@ def aproxy_address(self) -> Optional[str]:
assert (
proxy_address is not None and proxy_address.host is not None
) # nosec for [B101:assert_used]
if 'https' in proxy_address.host:
if "https" in proxy_address.host:
aproxy_address = proxy_address.host[8:]
elif 'http' in proxy_address.host:
elif "http" in proxy_address.host:
aproxy_address = proxy_address.host[7:]
else:
aproxy_address = proxy_address.host
else:
aproxy_address = None
return aproxy_address
Expand Down

0 comments on commit 7fa3720

Please sign in to comment.