Merge pull request #368 from andurin/lastline_verifyssl

Lastline verify_ssl option
pull/370/head
Christian Studer 2020-02-06 09:45:45 +01:00 committed by GitHub
commit b65237a0cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -29,6 +29,7 @@ moduleinfo = {
moduleconfig = [
"username",
"password",
"verify_ssl",
]
@ -67,7 +68,7 @@ def handler(q=False):
# Make the API calls
try:
api_client = lastline_api.PortalClient(api_url, auth_data)
api_client = lastline_api.PortalClient(api_url, auth_data, verify_ssl=config.get('verify_ssl', True).lower() in ("true"))
response = api_client.get_progress(task_uuid)
if response.get("completed") != 1:
raise ValueError("Analysis is not finished yet.")

View File

@ -31,6 +31,7 @@ moduleinfo = {
moduleconfig = [
"username",
"password",
"verify_ssl",
]
@ -81,7 +82,7 @@ def handler(q=False):
# Make the API calls
try:
api_client = lastline_api.PortalClient(api_url, auth_data)
api_client = lastline_api.PortalClient(api_url, auth_data, verify_ssl=config.get('verify_ssl', True).lower() in ("true"))
response = api_client.get_progress(task_uuid)
if response.get("completed") != 1:
raise ValueError("Analysis is not finished yet.")