Skip to content
Snippets Groups Projects
Commit ab1155e3 authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Do not disable SSL verifications by default

parent 8cec5203
No related branches found
No related tags found
1 merge request!2Fix create_element and custom SSL cert
Pipeline #28047 passed
......@@ -10,12 +10,12 @@ class ArkindexAPI(object):
DEFAULT_BASE_URL = 'https://arkindex.teklia.com/api/v1/'
def __init__(self, token=None, base_url=DEFAULT_BASE_URL, verify_ssl=None):
def __init__(self, token=None, base_url=DEFAULT_BASE_URL, verify_ssl=True):
self.auth = ArkindexTokenAuth(token) if token else None
self.base_url = str(base_url)
if not self.base_url.endswith('/'):
self.base_url += '/'
if verify_ssl:
if isinstance(verify_ssl, str):
assert os.path.exists(verify_ssl)
self.verify_ssl = verify_ssl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment