Merge branch 'master' of https://github.com/arcsector/MISP-Taxii-Server
commit
59fb6f27e8
|
@ -78,7 +78,7 @@ def post_stix(manager, content_block, collection_ids, service_id):
|
||||||
if CONFIG["misp"]["collections"] != "UNKNOWN" or CONFIG["misp"]["collections"] == False:
|
if CONFIG["misp"]["collections"] != "UNKNOWN" or CONFIG["misp"]["collections"] == False:
|
||||||
log.info("Using collections")
|
log.info("Using collections")
|
||||||
should_send_to_misp = False
|
should_send_to_misp = False
|
||||||
collection_names = [collection.name for collection in manager.get_collections(service_id)]
|
collection_names = [collection.name for collection in manager.get_collections(service_id) if collection.id in collection_ids]
|
||||||
for collection in CONFIG["misp"]["collections"]:
|
for collection in CONFIG["misp"]["collections"]:
|
||||||
if collection in collection_names or collection in collection_ids:
|
if collection in collection_names or collection in collection_ids:
|
||||||
log.info("Collection specified matches push collection: {}".format(collection))
|
log.info("Collection specified matches push collection: {}".format(collection))
|
||||||
|
|
Loading…
Reference in New Issue