Skip to content

Commit

Permalink
Add publish config
Browse files Browse the repository at this point in the history
  • Loading branch information
nazywam committed Apr 30, 2024
1 parent 2053115 commit 6da7c13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion karton/misp_pusher/misp_pusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def __init__(self, *args, **kwargs) -> None:
self.misp_ssl = not self.config.getboolean("misp", "insecure", False)
self.misp_timeout = self.config.getint("misp", "timeout", 10)
self.tag_events = self.config.getboolean("misp", "tag_events", True)
self.misp_published = self.config.getboolean("misp", "published", False)

self.cluster_mapping = {}
if self.config.get("misp", "galaxy_clusters_mapping"):
Expand Down Expand Up @@ -119,7 +120,7 @@ def process(self, task: Task) -> None:
for o in iocs.to_misp():
event.add_object(o)

event.published = self.config.getboolean("misp", "published", False)
event.published = self.misp_published

misp.add_event(event)

Expand Down

0 comments on commit 6da7c13

Please sign in to comment.