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

Commit 4dde5cc

Browse files
authored
Revert "[client] Ability to add indicator generated from the observables of a container in the container (#6171)"
1 parent 36bad38 commit 4dde5cc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pycti/entities/opencti_stix_cyber_observable.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,6 +1865,7 @@ 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)
18681869
if id is not None:
18691870
self.opencti.app_logger.info("Promoting Stix-Observable", {"id": id})
18701871
query = (
@@ -1876,12 +1877,7 @@ def promote_to_indicator(self, **kwargs):
18761877
+ (
18771878
custom_attributes
18781879
if custom_attributes is not None
1879-
else (
1880-
"""
1881-
id
1882-
entity_type
1883-
"""
1884-
)
1880+
else (self.properties_with_files if with_files else self.properties)
18851881
)
18861882
+ """
18871883
}

0 commit comments

Comments
 (0)