Lastline verify_ssl option

Helps people with on-prem boxes
pull/368/head
Hendrik 2020-01-27 07:43:46 +01:00 committed by Hendrik
parent b2c8f79220
commit 8f9940200b
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.")