Skip to content

Commit 3c733f1

Browse files
authored
Merge pull request #324 from splunk/data_sources_clarification
Ensure we print the right field for data_source
2 parents 81db497 + 45b3a87 commit 3c733f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contentctl/actions/new_content.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ def buildDetection(self)->dict[str,Any]:
2929
answers['date'] = datetime.today().strftime('%Y-%m-%d')
3030
answers['author'] = answers['detection_author']
3131
del answers['detection_author']
32-
answers['data_sources'] = answers['data_source']
33-
del answers['data_source']
32+
answers['data_source'] = answers['data_source']
3433
answers['type'] = answers['detection_type']
3534
del answers['detection_type']
3635
answers['status'] = "production" #start everything as production since that's what we INTEND the content to become

0 commit comments

Comments
 (0)