Skip to content

Commit a511ec9

Browse files
committed
Small updates
1 parent 14fb7f0 commit a511ec9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

contentctl/actions/detection_testing/infrastructures/DetectionTestingInfrastructure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,6 @@ def retry_search_until_timeout(
10751075

10761076

10771077

1078-
result_count: int = 0
10791078
# Filter out any messages in the results
10801079
for result in results:
10811080
if isinstance(result, Message):
@@ -1093,7 +1092,7 @@ def retry_search_until_timeout(
10931092
test.result.set_job_content(
10941093
job.content,
10951094
self.infrastructure,
1096-
TestResultStatus.ERROR,
1095+
TestResultStatus.FAIL,
10971096
exception=e,
10981097
duration=time.time() - search_start_time,
10991098
)

contentctl/objects/abstract_security_content_objects/detection_abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def risk(self) -> list[dict[str, Any]]:
302302

303303
elif 'Attacker' in entity.role:
304304
risk_object['threat_object_field'] = entity.name
305-
risk_object['threat_object_field'] = entity.type.lower()
305+
risk_object['threat_object_type'] = entity.type.lower()
306306
risk_objects.append(risk_object)
307307

308308
else:

0 commit comments

Comments
 (0)