From 90c553e57c3508c190eafe73bdfa42a136e0d1bc Mon Sep 17 00:00:00 2001 From: Jeremy Cloarec Date: Wed, 9 Apr 2025 11:51:57 +0200 Subject: [PATCH] [client] fix add_expectations being called twice --- pycti/connector/opencti_connector_helper.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pycti/connector/opencti_connector_helper.py b/pycti/connector/opencti_connector_helper.py index 3c4497da4..5a187126f 100644 --- a/pycti/connector/opencti_connector_helper.py +++ b/pycti/connector/opencti_connector_helper.py @@ -1932,10 +1932,6 @@ def send_stix2_bundle(self, bundle: str, **kwargs) -> list: raise ValueError("Nothing to import") if bundle_send_to_queue: - if work_id: - self.api.work.add_expectations(work_id, expectations_number) - if draft_id: - self.api.work.add_draft_context(work_id, draft_id) if entities_types is None: entities_types = [] if self.queue_protocol == "amqp":