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

Commit 4c182df

Browse files
[client] Ability to add indicator generated from the observables of a container in the container (#6171)
* promote to indicator return updated * linter fixed * useless comment removed
1 parent 4305825 commit 4c182df

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pycti/entities/opencti_stix_cyber_observable.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,7 +1865,6 @@ def update_field(self, **kwargs):
18651865
def promote_to_indicator(self, **kwargs):
18661866
id = kwargs.get("id", None)
18671867
custom_attributes = kwargs.get("customAttributes", None)
1868-
with_files = kwargs.get("withFiles", False)
18691868
if id is not None:
18701869
self.opencti.app_logger.info("Promoting Stix-Observable", {"id": id})
18711870
query = (
@@ -1877,7 +1876,12 @@ def promote_to_indicator(self, **kwargs):
18771876
+ (
18781877
custom_attributes
18791878
if custom_attributes is not None
1880-
else (self.properties_with_files if with_files else self.properties)
1879+
else (
1880+
"""
1881+
id
1882+
entity_type
1883+
"""
1884+
)
18811885
)
18821886
+ """
18831887
}

0 commit comments

Comments
 (0)