mirror of https://github.com/MISP/misp-modules
Fix VMRay API access error
hotfix for the "Unable to access VMRay API" errorpull/176/head
parent
326e701260
commit
6d23d4f4c7
|
@ -93,6 +93,9 @@ def handler(q=False):
|
||||||
analysis_data = vmrayDownloadAnalysis(api, analysis_id)
|
analysis_data = vmrayDownloadAnalysis(api, analysis_id)
|
||||||
|
|
||||||
if analysis_data:
|
if analysis_data:
|
||||||
|
if "analysis_vti_patterns" in analysis_data:
|
||||||
|
p = vmrayVtiPatterns(analysis_data["analysis_vti_patterns"])
|
||||||
|
else:
|
||||||
p = vmrayVtiPatterns(analysis_data["vti_patterns"])
|
p = vmrayVtiPatterns(analysis_data["vti_patterns"])
|
||||||
if p and len(p["results"]) > 0:
|
if p and len(p["results"]) > 0:
|
||||||
vti_patterns_found = True
|
vti_patterns_found = True
|
||||||
|
|
Loading…
Reference in New Issue