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

Commit 9ecfe0f

Browse files
authored
Wrong missing function argument in opencti_report.py (#165)
* [client] Fix hint (#161) * [client] Fix hint (#161) Co-authored-by: nor3th <>
1 parent d0e686f commit 9ecfe0f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pycti/entities/opencti_report.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@ def get_by_stix_id_or_name(self, **kwargs):
337337

338338
"""
339339
Check if a report already contains a thing (Stix Object or Stix Relationship)
340+
341+
:param id: the id of the Report
342+
:param stixObjectOrStixRelationshipId: the id of the Stix-Entity
340343
:return Boolean
341344
"""
342345

@@ -446,7 +449,7 @@ def create(self, **kwargs):
446449
Add a Stix-Entity object to Report object (object_refs)
447450
448451
:param id: the id of the Report
449-
:param entity_id: the id of the Stix-Entity
452+
:param stixObjectOrStixRelationshipId: the id of the Stix-Entity
450453
:return Boolean
451454
"""
452455

@@ -486,15 +489,15 @@ def add_stix_object_or_stix_relationship(self, **kwargs):
486489
return True
487490
else:
488491
self.opencti.log(
489-
"error", "[opencti_report] Missing parameters: id and entity_id"
492+
"error", "[opencti_report] Missing parameters: id and stixObjectOrStixRelationshipId"
490493
)
491494
return False
492495

493496
"""
494497
Remove a Stix-Entity object to Report object (object_refs)
495498
496499
:param id: the id of the Report
497-
:param entity_id: the id of the Stix-Entity
500+
:param stixObjectOrStixRelationshipId: the id of the Stix-Entity
498501
:return Boolean
499502
"""
500503

@@ -532,7 +535,7 @@ def remove_stix_object_or_stix_relationship(self, **kwargs):
532535
return True
533536
else:
534537
self.opencti.log(
535-
"error", "[opencti_report] Missing parameters: id and entity_id"
538+
"error", "[opencti_report] Missing parameters: id and stixObjectOrStixRelationshipId"
536539
)
537540
return False
538541

0 commit comments

Comments
 (0)