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

Commit a5b7608

Browse files
jekycSamuel Hassine
authored andcommitted
comment showing the value of lhs in the reference pattern
1 parent 7405c57 commit a5b7608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycti/opencti_stix2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ def create_indicator(self, stix_object, update=False):
914914
if object_type in stix2.OBJ_MAP_OBSERVABLE:
915915

916916
# get the left hand side as string and use it for looking up the correct OpenCTI name
917-
lhs = str(pattern.operand.lhs)
917+
lhs = str(pattern.operand.lhs) # this is "file:hashes.md5" from the reference pattern
918918
if lhs in STIX2OPENCTI:
919919
# the type and value can now be set
920920
indicator_type = STIX2OPENCTI[lhs]

0 commit comments

Comments
 (0)