Skip to content

Commit

Permalink
Merge pull request #324 from splunk/data_sources_clarification
Browse files Browse the repository at this point in the history
Ensure we print the right field for data_source
  • Loading branch information
pyth0n1c authored Nov 6, 2024
2 parents 81db497 + 45b3a87 commit 3c733f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contentctl/actions/new_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def buildDetection(self)->dict[str,Any]:
answers['date'] = datetime.today().strftime('%Y-%m-%d')
answers['author'] = answers['detection_author']
del answers['detection_author']
answers['data_sources'] = answers['data_source']
del answers['data_source']
answers['data_source'] = answers['data_source']
answers['type'] = answers['detection_type']
del answers['detection_type']
answers['status'] = "production" #start everything as production since that's what we INTEND the content to become
Expand Down

0 comments on commit 3c733f1

Please sign in to comment.