Skip to content

Commit

Permalink
Merge pull request #3 from sebastientinel/master
Browse files Browse the repository at this point in the history
Update create_task_log.py
  • Loading branch information
agix authored Sep 4, 2019
2 parents 9d92039 + a3e8e38 commit 7ab2efe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actions/create_task_log.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from thehive4py.api import TheHiveApi
from thehive4py.models import CaseTaskLog
from st2common.runners.base_action import Action

__all__ = [
Expand All @@ -9,6 +10,7 @@
class CreateTaskLogAction(Action):
def run(self, task_id, log):
api = TheHiveApi(self.config['thehive_url'], self.config['thehive_api_key'])
response = api.create_task_log(task_id, log)
case_task_log = CaseTaskLog(message=log)
response = api.create_task_log(task_id, case_task_log)

return response.json()

0 comments on commit 7ab2efe

Please sign in to comment.