mirror of https://github.com/MISP/PyMISP
[openioc] Allow the use of types in openioc content tags
parent
409ee532ba
commit
efd8b80adb
|
@ -217,6 +217,10 @@ def set_values(value1, value2=None):
|
|||
# construct attribut composite type
|
||||
compositeMapping = '{}|{}'.format(value1.find('context')['search'], value2.find('context')['search'])
|
||||
mapping = get_mapping(compositeMapping, mappingDict=iocMispCompositeMapping)
|
||||
else:
|
||||
content_type = value1.find('content').get('type', None)
|
||||
if content_type:
|
||||
mapping = get_mapping(value1.find('context')['search'] + '/' + content_type)
|
||||
else:
|
||||
mapping = get_mapping(value1.find('context')['search'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue