From 56f0b955721e6eb4ce3d6f91274a897c138b0b99 Mon Sep 17 00:00:00 2001 From: ljstella Date: Tue, 23 Jul 2024 11:24:41 -0500 Subject: [PATCH 1/3] Remove extra field --- contentctl/actions/new_content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contentctl/actions/new_content.py b/contentctl/actions/new_content.py index 6c155bd0..303fc623 100644 --- a/contentctl/actions/new_content.py +++ b/contentctl/actions/new_content.py @@ -32,7 +32,7 @@ def buildDetection(self)->dict[str,Any]: answers['status'] = "production" #start everything as production since that's what we INTEND the content to become answers['description'] = 'UPDATE_DESCRIPTION' file_name = answers['name'].replace(' ', '_').replace('-','_').replace('.','_').replace('/','_').lower() - answers['kind'] = answers['detection_kind'] + answers['search'] = answers['detection_search'] + ' | `' + file_name + '_filter`' del answers['detection_search'] answers['how_to_implement'] = 'UPDATE_HOW_TO_IMPLEMENT' From 65e60106d6902dd8ed47c8c4d024ff3a1773978e Mon Sep 17 00:00:00 2001 From: ljstella Date: Tue, 23 Jul 2024 11:25:24 -0500 Subject: [PATCH 2/3] Remove extra line --- contentctl/actions/new_content.py | 1 - 1 file changed, 1 deletion(-) diff --git a/contentctl/actions/new_content.py b/contentctl/actions/new_content.py index 303fc623..8813c996 100644 --- a/contentctl/actions/new_content.py +++ b/contentctl/actions/new_content.py @@ -32,7 +32,6 @@ def buildDetection(self)->dict[str,Any]: answers['status'] = "production" #start everything as production since that's what we INTEND the content to become answers['description'] = 'UPDATE_DESCRIPTION' file_name = answers['name'].replace(' ', '_').replace('-','_').replace('.','_').replace('/','_').lower() - answers['search'] = answers['detection_search'] + ' | `' + file_name + '_filter`' del answers['detection_search'] answers['how_to_implement'] = 'UPDATE_HOW_TO_IMPLEMENT' From 6b55888511899d6892a06aae57d9d04e239e229b Mon Sep 17 00:00:00 2001 From: ljstella Date: Tue, 23 Jul 2024 11:31:06 -0500 Subject: [PATCH 3/3] Version bump --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 817a3c0c..6b5dec71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "contentctl" -version = "4.1.3" +version = "4.1.4" description = "Splunk Content Control Tool" authors = ["STRT "] license = "Apache 2.0"