From 21f4f4b06d2450534a4e095c5b072f509744f379 Mon Sep 17 00:00:00 2001
From: florian <f.spreckelsen@inidscale.com>
Date: Thu, 10 Nov 2022 16:10:10 +0100
Subject: [PATCH] FIX: Use correct type of ssl_insecure

---
 src/caosdb/connection/connection.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/caosdb/connection/connection.py b/src/caosdb/connection/connection.py
index aaa09dfe..a2802848 100644
--- a/src/caosdb/connection/connection.py
+++ b/src/caosdb/connection/connection.py
@@ -282,7 +282,7 @@ class _DefaultCaosDBServerConnection(CaosDBServerConnection):
         verify = True
         if "cacert" in config:
             verify = config["cacert"]
-        if "ssl_insecure" in config and config["ssl_insecure"].lower() == "true":
+        if "ssl_insecure" in config and config["ssl_insecure"]:
             _LOGGER.warning("*** Warning! ***\n"
                             "Insecure SSL mode, certificate will not be checked! "
                             "Please consider removing the `ssl_insecure` configuration option.\n"
-- 
GitLab