From 6e9157dff59b961fddc962bd244e8aa55bca2e83 Mon Sep 17 00:00:00 2001 From: sed-i <82407168+sed-i@users.noreply.github.com> Date: Wed, 1 May 2024 16:26:22 -0400 Subject: [PATCH] Lint --- lib/charms/observability_libs/v0/cert_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/charms/observability_libs/v0/cert_handler.py b/lib/charms/observability_libs/v0/cert_handler.py index 4af3a29..e2e3998 100644 --- a/lib/charms/observability_libs/v0/cert_handler.py +++ b/lib/charms/observability_libs/v0/cert_handler.py @@ -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