Skip to content

Commit b0cfb4d

Browse files
author
Patrick Bareiss
committed
bug fix
1 parent bc3d6cc commit b0cfb4d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contentctl/objects/abstract_security_content_objects/detection_abstract.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,8 +1060,7 @@ def get_summary(
10601060
def validate_data_source_output_fields(self):
10611061
# Skip validation for Hunting and Correlation types, or non-production detections
10621062
if (self.status != DetectionStatus.production or
1063-
self.type in {AnalyticsType.Hunting, AnalyticsType.Correlation} or
1064-
len(self.data_source) <= 1):
1063+
self.type in {AnalyticsType.Hunting, AnalyticsType.Correlation}):
10651064
return self
10661065

10671066
# Validate that all required output fields are present in the search

0 commit comments

Comments
 (0)