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

Commit 93107be

Browse files
committed
[client] fix test
1 parent 7d2fcf2 commit 93107be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pycti/entities/opencti_identity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def create(self, **kwargs):
476476
input_variables["x_opencti_reliability"] = x_opencti_reliability
477477
input_variables["x_opencti_score"] = x_opencti_score
478478
result_data_field = "organizationAdd"
479-
elif type == IdentityTypes.SECURITY.value:
479+
elif type == IdentityTypes.SECURITYPLATFORM.value:
480480
query = """
481481
mutation SecurityPlatformAdd($input: SecurityPlatformAddInput!) {
482482
securityPlatformAdd(input: $input) {

pycti/utils/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class IdentityTypes(Enum):
5858
ORGANIZATION = "Organization"
5959
INDIVIDUAL = "Individual"
6060
SYSTEM = "System"
61-
SECURITY = "SecurityPlatform"
61+
SECURITYPLATFORM = "SecurityPlatform"
6262

6363
@classmethod
6464
def has_value(cls, value):

0 commit comments

Comments
 (0)