fix: [transform] minor fix when searching for galaxies

pull/40/head
Christophe Vandeplas 2019-12-17 21:53:13 +01:00
parent eb80120d2d
commit 06441f519c
3 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@ setup(
name='MISP_maltego',
author='Christophe Vandeplas',
# also update version in util.py
version='1.4.0',
version='1.4.1',
author_email='christophe@vandeplas.com',
maintainer='Christophe Vandeplas',
url='https://github.com/MISP/MISP-maltego',

View File

@ -12,7 +12,7 @@ import time
# FIXME from galaxy 'to MISP Event' is confusing
__version__ = '1.4.0' # also update version in setup.py
__version__ = '1.4.1' # also update version in setup.py
mapping_misp_to_maltego = {
'AS': [AS],

View File

@ -60,7 +60,9 @@ class GalaxyToTransform(Transform):
# TODO check if duplicates are possible
if potential_clusters:
for potential_cluster in potential_clusters:
response += galaxycluster_to_entity(potential_cluster, link_label='Search result')
new_entity = galaxycluster_to_entity(potential_cluster, link_label='Search result')
if isinstance(new_entity, type_filter):
response += new_entity
return response
if not current_cluster: