Skip to content

Commit

Permalink
Fix meta struct key for iast events (#3601)
Browse files Browse the repository at this point in the history
  • Loading branch information
e-n-0 authored Dec 2, 2024
1 parent 1af2d42 commit 61c7a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/appsec/test_asm_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _assert_tags_value(span, obj, expected_tags):
def assert_product_is_enabled(request, product):
product_enabled = False
tags = "_dd.iast.json" if product == "iast" else "_dd.appsec.json"
meta_struct_key = "vulnerability" if product == "iast" else "appsec"
meta_struct_key = "iast" if product == "iast" else "appsec"
for data, trace, span in interfaces.library.get_spans(request=request):
# Check if the product is enabled in meta
meta = span["meta"]
Expand Down

0 comments on commit 61c7a3c

Please sign in to comment.