mirror of https://github.com/MISP/misp-modules
fixed indent
parent
2d31b4e037
commit
9e1bc5681b
|
@ -91,7 +91,8 @@ class TruSTARParser:
|
||||||
trustar_obj.add_attribute("REPORT_LINK", attribute_type="link", value=link)
|
trustar_obj.add_attribute("REPORT_LINK", attribute_type="link", value=link)
|
||||||
self.misp_event.add_object(**trustar_obj)
|
self.misp_event.add_object(**trustar_obj)
|
||||||
|
|
||||||
def handler(q=False):
|
|
||||||
|
def handler(q=False):
|
||||||
"""
|
"""
|
||||||
MISP handler function. A user's API key and secret will be retrieved from the MISP
|
MISP handler function. A user's API key and secret will be retrieved from the MISP
|
||||||
request and used to create a TruSTAR API client. If enclave IDs are provided, only
|
request and used to create a TruSTAR API client. If enclave IDs are provided, only
|
||||||
|
@ -122,9 +123,11 @@ class TruSTARParser:
|
||||||
trustar_parser.parse_indicator_summary(summaries)
|
trustar_parser.parse_indicator_summary(summaries)
|
||||||
return trustar_parser.get_results()
|
return trustar_parser.get_results()
|
||||||
|
|
||||||
def introspection():
|
|
||||||
|
def introspection():
|
||||||
return mispattributes
|
return mispattributes
|
||||||
|
|
||||||
def version():
|
|
||||||
|
def version():
|
||||||
moduleinfo['config'] = moduleconfig
|
moduleinfo['config'] = moduleconfig
|
||||||
return moduleinfo
|
return moduleinfo
|
||||||
|
|
Loading…
Reference in New Issue