Skip to content

Commit ec435cc

Browse files
committed
[client] fix force delete args
1 parent 2986c2d commit ec435cc

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
@@ -2513,8 +2513,8 @@ def organization_unshare(self, item):
25132513
def element_operation_delete(self, item, operation):
25142514
# If data is stix, just use the generic stix function for deletion
25152515
if item["type"] in STIX_OBJECTS:
2516-
item["force_delete"] = operation == "delete-force"
2517-
self.opencti.stix.delete(id=item["id"])
2516+
force_delete = operation == "delete-force"
2517+
self.opencti.stix.delete(id=item["id"], force_delete=force_delete)
25182518
else:
25192519
# Element is not knowledge we need to use the right api
25202520
stix_helper = self.get_internal_helper().get(item["type"])

0 commit comments

Comments
 (0)