From ace1a41e84981248e2ddfb7dbfa95751b06ad31d Mon Sep 17 00:00:00 2001 From: Israel Lappe <79846863+ilappe@users.noreply.github.com> Date: Thu, 20 Jul 2023 14:19:48 +0300 Subject: [PATCH] GetListRow: fix tab separated values issue (#28348) * fix tab issue in list * Update Packs/CommonScripts/ReleaseNotes/1_12_5.md Co-authored-by: Dean Arbel --------- Co-authored-by: Dean Arbel --- Packs/CommonScripts/ReleaseNotes/1_12_5.md | 7 +++++++ Packs/CommonScripts/Scripts/GetlistRow/GetListRow.py | 2 +- Packs/CommonScripts/Scripts/GetlistRow/GetListRow.yml | 2 +- Packs/CommonScripts/pack_metadata.json | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 Packs/CommonScripts/ReleaseNotes/1_12_5.md diff --git a/Packs/CommonScripts/ReleaseNotes/1_12_5.md b/Packs/CommonScripts/ReleaseNotes/1_12_5.md new file mode 100644 index 000000000000..3660b3858506 --- /dev/null +++ b/Packs/CommonScripts/ReleaseNotes/1_12_5.md @@ -0,0 +1,7 @@ + +#### Scripts + +##### GetListRow + +- Fixed an issue when using *\t* as a separator didn't parse tabs as expected. +- Updated the docker image to: *demisto/python3:3.10.12.65389*. diff --git a/Packs/CommonScripts/Scripts/GetlistRow/GetListRow.py b/Packs/CommonScripts/Scripts/GetlistRow/GetListRow.py index a345f9867387..af243c195159 100644 --- a/Packs/CommonScripts/Scripts/GetlistRow/GetListRow.py +++ b/Packs/CommonScripts/Scripts/GetlistRow/GetListRow.py @@ -80,7 +80,7 @@ def main(): header = args.get('header', '') value = args.get('value', '') list_separator = args.get('list_separator', ',') or ',' - list_separator = list_separator.replace('\\t', ' ').replace('\t', ' ') + list_separator = list_separator.replace('\\t', '\t') return_results(parse_list(parse_all, header, value, list_name, list_separator)) diff --git a/Packs/CommonScripts/Scripts/GetlistRow/GetListRow.yml b/Packs/CommonScripts/Scripts/GetlistRow/GetListRow.yml index f69fd703d31c..394fa8e32229 100644 --- a/Packs/CommonScripts/Scripts/GetlistRow/GetListRow.yml +++ b/Packs/CommonScripts/Scripts/GetlistRow/GetListRow.yml @@ -42,7 +42,7 @@ script: '-' subtype: python3 timeout: '0' type: python -dockerimage: demisto/python3:3.10.12.63474 +dockerimage: demisto/python3:3.10.12.65389 runas: DBotWeakRole tests: - No tests (auto formatted) diff --git a/Packs/CommonScripts/pack_metadata.json b/Packs/CommonScripts/pack_metadata.json index 473cd61a5807..df9c4ef2450a 100644 --- a/Packs/CommonScripts/pack_metadata.json +++ b/Packs/CommonScripts/pack_metadata.json @@ -2,7 +2,7 @@ "name": "Common Scripts", "description": "Frequently used scripts pack.", "support": "xsoar", - "currentVersion": "1.12.4", + "currentVersion": "1.12.5", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", "email": "",