# HG changeset patch # User Goffi # Date 1583535949 -3600 # Node ID 58d3ea442f9cc53aef4544aa6770c905b980dd49 # Parent b5e6d36fbf9c5fbfc1272a87410db992f2641d1c core (patches): renamed `apply` to `disable_tls_validation` which suits better diff -r b5e6d36fbf9c -r 58d3ea442f9c cagou/core/cagou_main.py --- a/cagou/core/cagou_main.py Sat Mar 07 00:05:49 2020 +0100 +++ b/cagou/core/cagou_main.py Sat Mar 07 00:05:49 2020 +0100 @@ -464,7 +464,7 @@ C.BOOL_FALSE)) if not self.tls_validation: from cagou.core import patches - patches.apply() + patches.disable_tls_validation() log.warning("SSL certificate validation is disabled, this is unsecure!") local_platform.on_host_init(self) diff -r b5e6d36fbf9c -r 58d3ea442f9c cagou/core/patches.py --- a/cagou/core/patches.py Sat Mar 07 00:05:49 2020 +0100 +++ b/cagou/core/patches.py Sat Mar 07 00:05:49 2020 +0100 @@ -20,7 +20,7 @@ import ssl -def apply(): +def disable_tls_validation(): # allow to disable certificate validation ctx_no_verify = ssl.create_default_context() ctx_no_verify.check_hostname = False