Skip to content

Commit

Permalink
Merge pull request #98 from splunk/fix_status_in_new_content
Browse files Browse the repository at this point in the history
Status field was not output during new_content
  • Loading branch information
pyth0n1c authored Jan 31, 2024
2 parents 9e3eade + d79f844 commit 59abf0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contentctl/input/new_content_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def execute(self, input_dto: NewContentGeneratorInputDto) -> None:
self.output_dto.obj['author'] = answers['detection_author']
self.output_dto.obj['data_source'] = answers['data_source']
self.output_dto.obj['type'] = answers['detection_type']
self.output_dto.obj['status'] = "production" #start everything as production since that's what we INTEND the content to become
self.output_dto.obj['description'] = 'UPDATE_DESCRIPTION'
self.output_dto.obj['description'] = "production" #start everything as production since that's what we INTEND the content to become
file_name = self.output_dto.obj['name'].replace(' ', '_').replace('-','_').replace('.','_').replace('/','_').lower()
self.output_dto.obj['search'] = answers['detection_search'] + ' | `' + file_name + '_filter`'
self.output_dto.obj['how_to_implement'] = 'UPDATE_HOW_TO_IMPLEMENT'
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "contentctl"
version = "3.0.1"
version = "3.0.2"
description = "Splunk Content Control Tool"
authors = ["STRT <[email protected]>"]
license = "Apache 2.0"
Expand Down

0 comments on commit 59abf0e

Please sign in to comment.