George Haraksin 2020-05-14 16:38:47 -07:00
commit 59fb6f27e8
1 changed files with 1 additions and 1 deletions

View File

@ -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))