Skip to content

Commit

Permalink
Merge pull request #460 from opencybersecurityalliance/hotfix-458-del…
Browse files Browse the repository at this point in the history
…ete-query-after-use

add delete operation after query in stixshifter interface
  • Loading branch information
subbyte authored Jan 17, 2024
2 parents 5c8946b + d69e562 commit 4fa6612
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ def run(self):
if self.wait_datasource_search():
# no error so far
self.retrieve_data()

# some connector needs to delete the query in the datasource,
# e.g., chronicle, discard the return (successful or not)
self.transmission.delete(self.search_id)
else:
err_msg = (
search_meta_result["error"]
Expand Down

0 comments on commit 4fa6612

Please sign in to comment.