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

Commit af03aa5

Browse files
[client] Put the right operation for replace patch
1 parent e587149 commit af03aa5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pycti/utils/opencti_stix2_update.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,7 @@ def process_update(self, data):
284284
str(current_val),
285285
)
286286
)
287-
inputs.append(
288-
{"key": key, "value": values, "operation": "remove"}
289-
)
287+
inputs.append({"key": key, "value": values})
290288
else:
291289
values = (
292290
current_val["value"]
@@ -295,9 +293,7 @@ def process_update(self, data):
295293
)
296294
else str(current_val)
297295
)
298-
inputs.append(
299-
{"key": key, "value": values, "operation": "remove"}
300-
)
296+
inputs.append({"key": key, "value": values})
301297
self.update_attribute(data["type"], data["id"], inputs)
302298
except Exception as e:
303299
print(e)

0 commit comments

Comments
 (0)