Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 3d7e94d

Browse files
author
Samuel Hassine
committed
[client] Fix connector helper
1 parent ff38519 commit 3d7e94d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

pycti/connector/opencti_connector_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ def run(self) -> None:
173173
else None,
174174
)
175175
self.pika_connection = pika.BlockingConnection(self.pika_parameters)
176-
assert self.channel is not None
177176
self.channel = self.pika_connection.channel()
177+
assert self.channel is not None
178178
self.channel.basic_consume(
179179
queue=self.queue_name, on_message_callback=self._process_message
180180
)

pycti/entities/opencti_indicator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ def create(self, **kwargs):
311311
x_opencti_main_observable_type = kwargs.get(
312312
"x_opencti_main_observable_type", None
313313
)
314+
x_mitre_platforms = kwargs.get("x_mitre_platforms", None)
314315
kill_chain_phases = kwargs.get("killChainPhases", None)
315316
update = kwargs.get("update", False)
316317

@@ -368,6 +369,7 @@ def create(self, **kwargs):
368369
"x_opencti_score": x_opencti_score,
369370
"x_opencti_detection": x_opencti_detection,
370371
"x_opencti_main_observable_type": x_opencti_main_observable_type,
372+
"x_mitre_platforms": x_mitre_platforms,
371373
"killChainPhases": kill_chain_phases,
372374
"update": update,
373375
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from setuptools import setup
77
from setuptools.command.install import install
88

9-
VERSION = "4.5.4"
9+
VERSION = "4.5.5"
1010

1111
with open("README.md", "r") as fh:
1212
long_description = fh.read()

0 commit comments

Comments
 (0)