Skip to content

Commit 8d0f8a8

Browse files
authored
Merge pull request #215 from intelowlproject/develop
4.4.5
2 parents 5ec6958 + f7082c4 commit 8d0f8a8

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
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.5](https://github.com/intelowlproject/pyintelowl/releases/tag/4.4.5)
4+
- Default TLP for analysis is not TLP:CLEAR anymore. For instance, this prevents the client to overwrite the TLP configuration of a Playbook.
5+
36
## [4.4.4](https://github.com/intelowlproject/pyintelowl/releases/tag/4.4.4)
47
- Little fixes
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.4"
16+
VERSION = "4.4.5"
1717
GITHUB_URL = "https://github.com/intelowlproject/pyintelowl"
1818

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

pyintelowl/pyintelowl.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def send_file_analysis_request(
171171
Defaults to ``[]`` i.e. all connectors.
172172
tlp (str, optional):
173173
TLP for the analysis.
174-
(options: ``WHITE, GREEN, AMBER, RED``). Defaults to ``WHITE``.
174+
(options: ``WHITE, GREEN, AMBER, RED``).
175175
runtime_configuration (Dict, optional):
176176
Overwrite configuration for analyzers. Defaults to ``{}``.
177177
tags_labels (List[str], optional):
@@ -184,8 +184,6 @@ def send_file_analysis_request(
184184
Dict: JSON body
185185
"""
186186
try:
187-
if not tlp:
188-
tlp = "WHITE"
189187
if not analyzers_requested:
190188
analyzers_requested = []
191189
if not connectors_requested:
@@ -232,7 +230,7 @@ def send_file_analysis_playbook_request(
232230
Defaults to ``[]`` i.e. all playbooks.
233231
tlp (str, optional):
234232
TLP for the analysis.
235-
(options: ``WHITE, GREEN, AMBER, RED``). Defaults to ``WHITE``.
233+
(options: ``WHITE, GREEN, AMBER, RED``).
236234
runtime_configuration (Dict, optional):
237235
Overwrite configuration for analyzers. Defaults to ``{}``.
238236
tags_labels (List[str], optional):
@@ -245,8 +243,6 @@ def send_file_analysis_playbook_request(
245243
Dict: JSON body
246244
"""
247245
try:
248-
if not tlp:
249-
tlp = "WHITE"
250246
if not playbooks_requested:
251247
playbooks_requested = []
252248
if not tags_labels:
@@ -296,7 +292,7 @@ def send_observable_analysis_request(
296292
Defaults to ``[]`` i.e. all connectors.
297293
tlp (str, optional):
298294
TLP for the analysis.
299-
(options: ``WHITE, GREEN, AMBER, RED``). Defaults to ``WHITE``.
295+
(options: ``WHITE, GREEN, AMBER, RED``).
300296
runtime_configuration (Dict, optional):
301297
Overwrite configuration for analyzers. Defaults to ``{}``.
302298
tags_labels (List[str], optional):
@@ -314,8 +310,6 @@ def send_observable_analysis_request(
314310
Dict: JSON body
315311
"""
316312
try:
317-
if not tlp:
318-
tlp = "WHITE"
319313
if not analyzers_requested:
320314
analyzers_requested = []
321315
if not connectors_requested:
@@ -373,7 +367,7 @@ def send_observable_analysis_playbook_request(
373367
Defaults to ``[]`` i.e. all playbooks.
374368
tlp (str, optional):
375369
TLP for the analysis.
376-
(options: ``WHITE, GREEN, AMBER, RED``). Defaults to ``WHITE``.
370+
(options: ``WHITE, GREEN, AMBER, RED``).
377371
runtime_configuration (Dict, optional):
378372
Overwrite configuration for analyzers. Defaults to ``{}``.
379373
tags_labels (List[str], optional):
@@ -391,8 +385,6 @@ def send_observable_analysis_playbook_request(
391385
Dict: JSON body
392386
"""
393387
try:
394-
if not tlp:
395-
tlp = "WHITE"
396388
if not playbooks_requested:
397389
playbooks_requested = []
398390
if not tags_labels:
@@ -685,7 +677,7 @@ def _new_analysis_cli(
685677
obj: str,
686678
type_: str,
687679
check,
688-
tlp: TLPType = "CLEAR",
680+
tlp: TLPType = None,
689681
analyzers_list: List[str] = None,
690682
connectors_list: List[str] = None,
691683
runtime_configuration: Dict = None,
@@ -775,7 +767,7 @@ def _new_analysis_playbook_cli(
775767
obj: str,
776768
type_: str,
777769
check,
778-
tlp: TLPType = "CLEAR",
770+
tlp: TLPType = None,
779771
playbooks_list: List[str] = None,
780772
runtime_configuration: Dict = None,
781773
tags_labels: List[str] = None,

pyintelowl/version.py

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

0 commit comments

Comments
 (0)