Skip to content

Commit 1102fa9

Browse files
Merge pull request #213 from canonical/IAM-1426
fix: add the check before querying the container file system
2 parents 0401c03 + 57c3ce6 commit 1102fa9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/integrations.py

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def __init__(self, charm: CharmBase) -> None:
5959

6060
@property
6161
def tls_enabled(self) -> bool:
62+
if not self._container.can_connect():
63+
return False
64+
6265
return (
6366
self._container.exists(SERVER_KEY)
6467
and self._container.exists(SERVER_CERT)

0 commit comments

Comments
 (0)