mirror of https://github.com/MISP/misp-modules
parent
b2c8f79220
commit
8f9940200b
|
@ -29,6 +29,7 @@ moduleinfo = {
|
||||||
moduleconfig = [
|
moduleconfig = [
|
||||||
"username",
|
"username",
|
||||||
"password",
|
"password",
|
||||||
|
"verify_ssl",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -67,7 +68,7 @@ def handler(q=False):
|
||||||
|
|
||||||
# Make the API calls
|
# Make the API calls
|
||||||
try:
|
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)
|
response = api_client.get_progress(task_uuid)
|
||||||
if response.get("completed") != 1:
|
if response.get("completed") != 1:
|
||||||
raise ValueError("Analysis is not finished yet.")
|
raise ValueError("Analysis is not finished yet.")
|
||||||
|
|
|
@ -31,6 +31,7 @@ moduleinfo = {
|
||||||
moduleconfig = [
|
moduleconfig = [
|
||||||
"username",
|
"username",
|
||||||
"password",
|
"password",
|
||||||
|
"verify_ssl",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -81,7 +82,7 @@ def handler(q=False):
|
||||||
|
|
||||||
# Make the API calls
|
# Make the API calls
|
||||||
try:
|
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)
|
response = api_client.get_progress(task_uuid)
|
||||||
if response.get("completed") != 1:
|
if response.get("completed") != 1:
|
||||||
raise ValueError("Analysis is not finished yet.")
|
raise ValueError("Analysis is not finished yet.")
|
||||||
|
|
Loading…
Reference in New Issue