From fe6b612e05a0631efa4534ffc503d7c2192f3215 Mon Sep 17 00:00:00 2001 From: Jacob Appleton <57971533+jacobappleton-orbis@users.noreply.github.com> Date: Fri, 5 Jan 2024 14:05:07 -0800 Subject: [PATCH] Use case-sensitive name lookup for tag Addresses #176 --- custom_functions/indicator_tag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_functions/indicator_tag.py b/custom_functions/indicator_tag.py index 939938c..7720dbe 100644 --- a/custom_functions/indicator_tag.py +++ b/custom_functions/indicator_tag.py @@ -46,7 +46,7 @@ def indicator_tag(indicator=None, tags=None, overwrite=None, **kwargs): # attempt to translate indicator string value to a indicator id elif isinstance(indicator, str): - params = {'_filter_value__iexact': f'"{indicator}"'} + params = {'_filter_value__exact': f'"{indicator}"'} response = phantom.requests.get(url, params=params, verify=False).json() if response['count'] == 1: indicator_id = response['data'][0]['id']