Skip to content

Commit d8df8ec

Browse files
authored
Merge pull request #233 from intelowlproject/develop
4.4.7
2 parents 0c2ae7b + 9a97fcc commit d8df8ec

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.github/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
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

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import os
1414
import sys
1515

16-
VERSION = "4.4.6"
16+
VERSION = "4.4.7"
1717
GITHUB_URL = "https://github.com/intelowlproject/pyintelowl"
1818

1919
sys.path.append(os.path.abspath("../"))

pyintelowl/pyintelowl.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)

pyintelowl/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.4.6"
1+
__version__ = "4.4.7"

0 commit comments

Comments
 (0)