Skip to content

Commit f7a0963

Browse files
committed
Fix a bug where the jinja template for analyticsories_detection crashed when specifying a detection.tags.asset_type. Fixes splunk#313.
1 parent f9bcd7e commit f7a0963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contentctl/output/templates/analyticstories_detections.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% if (detection.type == 'TTP' or detection.type == 'Anomaly' or detection.type == 'Hunting' or detection.type == 'Correlation') %}
66
[savedsearch://{{ detection.get_conf_stanza_name(app) }}]
77
type = detection
8-
asset_type = {{ detection.tags.asset_type.value }}
8+
asset_type = {{ detection.tags.asset_type }}
99
confidence = medium
1010
explanation = {{ (detection.explanation if detection.explanation else detection.description) | escapeNewlines() }}
1111
{% if detection.how_to_implement is defined %}

0 commit comments

Comments
 (0)