Skip to content

Commit e19e7d9

Browse files
richard-julienJeremyCloarec
authored andcommitted
[client] Adapt is_compatible compute
1 parent 8c7b815 commit e19e7d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycti/utils/opencti_stix2_splitter.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ def enlist_element(
178178
# Put in cache
179179
if self.cache_index.get(item_id) is None:
180180
# enlist only if compatible
181-
if item["type"] == "relationship" and item.get("opencti_operation") is None:
181+
if item["type"] == "relationship":
182182
is_compatible = (
183183
item["source_ref"] is not None and item["target_ref"] is not None
184184
)
185-
elif item["type"] == "sighting" and item.get("opencti_operation") is None:
185+
elif item["type"] == "sighting":
186186
is_compatible = (
187187
item["sighting_of_ref"] is not None
188188
and len(item["where_sighted_refs"]) > 0

0 commit comments

Comments
 (0)