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

Commit 7657de5

Browse files
author
Samuel Hassine
committed
[client] Do not get relation id
1 parent 695601b commit 7657de5

File tree

4 files changed

+2
-20
lines changed

4 files changed

+2
-20
lines changed

pycti/api/opencti_api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def process_multiple(self, data):
261261
):
262262
row = edge["node"]
263263
# Handle remote relation ID
264-
if "relation" in edge:
264+
if "relation" in edge and edge["relation"] is not None and "id" in edge["relation"]:
265265
row["remote_relation_id"] = edge["relation"]["id"]
266266
result.append(self.process_multiple_fields(row))
267267
return result

pycti/entities/opencti_report.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ def __init__(self, opencti):
102102
stix_id_key
103103
entity_type
104104
}
105-
relation {
106-
id
107-
}
108105
}
109106
}
110107
observableRefs {
@@ -115,9 +112,6 @@ def __init__(self, opencti):
115112
entity_type
116113
observable_value
117114
}
118-
relation {
119-
id
120-
}
121115
}
122116
}
123117
relationRefs {
@@ -126,9 +120,6 @@ def __init__(self, opencti):
126120
id
127121
stix_id_key
128122
}
129-
relation {
130-
id
131-
}
132123
}
133124
}
134125
"""

pycti/entities/opencti_stix_domain_entity.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,6 @@ def __init__(self, opencti, file):
231231
stix_id_key
232232
entity_type
233233
}
234-
relation {
235-
id
236-
}
237234
}
238235
}
239236
observableRefs {
@@ -244,9 +241,6 @@ def __init__(self, opencti, file):
244241
entity_type
245242
observable_value
246243
}
247-
relation {
248-
id
249-
}
250244
}
251245
}
252246
relationRefs {
@@ -255,9 +249,6 @@ def __init__(self, opencti, file):
255249
id
256250
stix_id_key
257251
}
258-
relation {
259-
id
260-
}
261252
}
262253
}
263254
}

pycti/entities/opencti_stix_relation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, opencti):
3939
...on StixDomainEntity {
4040
name
4141
description
42-
}
42+
}
4343
}
4444
createdByRef {
4545
node {

0 commit comments

Comments
 (0)