File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## [ 4.4.7] ( https://github.com/intelowlproject/pyintelowl/releases/tag/4.4.7 )
4+ - Fixed Running Playbook without TLP set
5+
36## [ 4.4.6] ( https://github.com/intelowlproject/pyintelowl/releases/tag/4.4.6 )
47- Readded default TLP for analysis as TLP: CLEAR for "classic" analyses only (the ones that do not leverage a Playbook)
58
Original file line number Diff line number Diff line change 1313import os
1414import sys
1515
16- VERSION = "4.4.6 "
16+ VERSION = "4.4.7 "
1717GITHUB_URL = "https://github.com/intelowlproject/pyintelowl"
1818
1919sys .path .append (os .path .abspath ("../" ))
Original file line number Diff line number Diff line change @@ -253,9 +253,12 @@ def send_file_analysis_playbook_request(
253253 runtime_configuration = {}
254254 data = {
255255 "playbooks_requested" : playbooks_requested ,
256- "tlp" : tlp ,
257256 "tags_labels" : tags_labels ,
258257 }
258+ # send this value only if populated,
259+ # otherwise the backend would give you 400
260+ if tlp :
261+ data ["tlp" ] = tlp
259262
260263 if runtime_configuration :
261264 data ["runtime_configuration" ] = json .dumps (runtime_configuration )
@@ -413,10 +416,13 @@ def send_observable_analysis_playbook_request(
413416 data = {
414417 "observables" : [[observable_classification , observable_name ]],
415418 "playbooks_requested" : playbooks_requested ,
416- "tlp" : tlp ,
417419 "tags_labels" : tags_labels ,
418420 "runtime_configuration" : runtime_configuration ,
419421 }
422+ # send this value only if populated,
423+ # otherwise the backend would give you 400
424+ if tlp :
425+ data ["tlp" ] = tlp
420426 answer = self .__send_analysis_request (
421427 data = data , files = None , playbook_mode = True
422428 )
Original file line number Diff line number Diff line change 1- __version__ = "4.4.6 "
1+ __version__ = "4.4.7 "
You can’t perform that action at this time.
0 commit comments