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

Commit 67f9458

Browse files
committed
[client] Fix event / language creation (no organization)
1 parent 66ec7ca commit 67f9458

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

pycti/entities/opencti_event.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ def create(self, **kwargs):
288288
stop_time = kwargs.get("stop_time", None)
289289
event_types = kwargs.get("event_types", None)
290290
x_opencti_stix_ids = kwargs.get("x_opencti_stix_ids", None)
291-
granted_refs = kwargs.get("objectOrganization", None)
292291
update = kwargs.get("update", False)
293292

294293
if name is not None and description is not None:
@@ -311,7 +310,6 @@ def create(self, **kwargs):
311310
"createdBy": created_by,
312311
"objectMarking": object_marking,
313312
"objectLabel": object_label,
314-
"objectOrganization": granted_refs,
315313
"externalReferences": external_references,
316314
"revoked": revoked,
317315
"confidence": confidence,
@@ -396,9 +394,6 @@ def import_from_stix2(self, **kwargs):
396394
x_opencti_stix_ids=stix_object["x_opencti_stix_ids"]
397395
if "x_opencti_stix_ids" in stix_object
398396
else None,
399-
objectOrganization=stix_object["granted_refs"]
400-
if "granted_refs" in stix_object
401-
else None,
402397
update=update,
403398
)
404399
else:

pycti/entities/opencti_language.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ def create(self, **kwargs):
280280
name = kwargs.get("name", None)
281281
aliases = kwargs.get("aliases", None)
282282
x_opencti_stix_ids = kwargs.get("x_opencti_stix_ids", None)
283-
granted_refs = kwargs.get("objectOrganization", None)
284283
update = kwargs.get("update", False)
285284

286285
if name is not None:
@@ -303,7 +302,6 @@ def create(self, **kwargs):
303302
"createdBy": created_by,
304303
"objectMarking": object_marking,
305304
"objectLabel": object_label,
306-
"objectOrganization": granted_refs,
307305
"externalReferences": external_references,
308306
"revoked": revoked,
309307
"confidence": confidence,
@@ -370,9 +368,6 @@ def import_from_stix2(self, **kwargs):
370368
x_opencti_stix_ids=stix_object["x_opencti_stix_ids"]
371369
if "x_opencti_stix_ids" in stix_object
372370
else None,
373-
objectOrganization=stix_object["granted_refs"]
374-
if "granted_refs" in stix_object
375-
else None,
376371
update=update,
377372
)
378373
else:

0 commit comments

Comments
 (0)