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

Commit 318904a

Browse files
author
Samuel Hassine
committed
[client] Fix creation of attack patterns that have the same name
1 parent 82d2507 commit 318904a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pycti/entities/opencti_attack_pattern.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,10 @@ def create(self, **kwargs):
382382
)
383383
if object_result is not None:
384384
# Check kill chain phase
385-
if kill_chain_phases is not None and len(object_result["killChainPhasesIds"]) > 0:
385+
if (
386+
kill_chain_phases is not None
387+
and len(object_result["killChainPhasesIds"]) > 0
388+
):
386389
is_kill_chain_phase_match = False
387390
for kill_chain_phase in kill_chain_phases:
388391
for kill_chain_phase_id in object_result["killChainPhasesIds"]:

0 commit comments

Comments
 (0)