Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sed-i committed May 1, 2024
1 parent a7c05dc commit 6e9157d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/charms/observability_libs/v0/cert_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def _server_cert(self, value: str):
def _chain(self) -> List[str]:
if self._peer_relation:
if chain := self._peer_relation.data[self.charm.unit].get("chain", []):
return json.loads(chain)
return cast(list, json.loads(cast(str, chain)))
return []

@_chain.setter
Expand Down

0 comments on commit 6e9157d

Please sign in to comment.