Skip to content

Commit 7e8c483

Browse files
committed
[client] fix force delete args
1 parent 0bbd88b commit 7e8c483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycti/utils/opencti_stix2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2519,8 +2519,8 @@ def organization_unshare(self, item):
25192519
def element_operation_delete(self, item, operation):
25202520
# If data is stix, just use the generic stix function for deletion
25212521
if item["type"] in STIX_OBJECTS:
2522-
item["force_delete"] = operation == "delete-force"
2523-
self.opencti.stix.delete(id=item["id"])
2522+
force_delete = operation == "delete-force"
2523+
self.opencti.stix.delete(id=item["id"], force_delete=force_delete)
25242524
else:
25252525
# Element is not knowledge we need to use the right api
25262526
stix_helper = self.get_internal_helper().get(item["type"])

0 commit comments

Comments
 (0)