Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
api-client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
api-client
Merge requests
!2
Fix create_element and custom SSL cert
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix create_element and custom SSL cert
fix-post
into
master
Overview
0
Commits
3
Pipelines
1
Changes
1
Merged
Erwan Rouchet
requested to merge
fix-post
into
master
6 years ago
Overview
0
Commits
3
Pipelines
1
Changes
1
Expand
Properly return response for create_element and add option for a custom SSL certificate
0
0
Merge request reports
Viewing commit
ab1155e3
Prev
Next
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ab1155e3
Do not disable SSL verifications by default
· ab1155e3
Erwan Rouchet
authored
6 years ago
arkindex/client.py
+
2
−
2
Options
@@ -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
=
Non
e
):
def
__init__
(
self
,
token
=
None
,
base_url
=
DEFAULT_BASE_URL
,
verify_ssl
=
Tru
e
):
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
Loading