From 4c583e68eb18791e4e56dfb295d788ed3067297e Mon Sep 17 00:00:00 2001 From: Michael Yochpaz <8832013+MichaelYochpaz@users.noreply.github.com> Date: Sun, 26 Nov 2023 13:30:46 +0200 Subject: [PATCH 1/3] Add default value to `args.get()` --- Packs/Base/Scripts/CommonServerPython/CommonServerPython.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packs/Base/Scripts/CommonServerPython/CommonServerPython.py b/Packs/Base/Scripts/CommonServerPython/CommonServerPython.py index 675cfb5344e0..0ebe2aa3fb10 100644 --- a/Packs/Base/Scripts/CommonServerPython/CommonServerPython.py +++ b/Packs/Base/Scripts/CommonServerPython/CommonServerPython.py @@ -10383,7 +10383,7 @@ def inner(args, *arguments, **kwargs): *arguments: any additional arguments to the command function. **kwargs: additional keyword arguments to the command function. """ - if not requires_polling_arg or argToBoolean(args.get(polling_arg_name)): + if not requires_polling_arg or argToBoolean(args.get(polling_arg_name, False)): ScheduledCommand.raise_error_if_not_supported() poll_result = func(args, *arguments, **kwargs) From de0098d5b5d952b3d550ca3585f12309abb4edf4 Mon Sep 17 00:00:00 2001 From: Michael Yochpaz <8832013+MichaelYochpaz@users.noreply.github.com> Date: Sun, 26 Nov 2023 13:32:07 +0200 Subject: [PATCH 2/3] Bump version --- Packs/Base/ReleaseNotes/1_32_49.md | 6 ++++++ Packs/Base/pack_metadata.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 Packs/Base/ReleaseNotes/1_32_49.md diff --git a/Packs/Base/ReleaseNotes/1_32_49.md b/Packs/Base/ReleaseNotes/1_32_49.md new file mode 100644 index 000000000000..96d0c0a7210c --- /dev/null +++ b/Packs/Base/ReleaseNotes/1_32_49.md @@ -0,0 +1,6 @@ + +#### Scripts + +##### CommonServerPython + +- Fixed an issue where polling commands might not work properly when the `polling` parameter is missing. diff --git a/Packs/Base/pack_metadata.json b/Packs/Base/pack_metadata.json index 3d8a5fa92018..31fa0408b84b 100644 --- a/Packs/Base/pack_metadata.json +++ b/Packs/Base/pack_metadata.json @@ -2,7 +2,7 @@ "name": "Base", "description": "The base pack for Cortex XSOAR.", "support": "xsoar", - "currentVersion": "1.32.48", + "currentVersion": "1.32.49", "author": "Cortex XSOAR", "serverMinVersion": "6.0.0", "url": "https://www.paloaltonetworks.com/cortex", From b4844407ec8f0187bfa22dd08c536f02821b4c0a Mon Sep 17 00:00:00 2001 From: Michael Yochpaz <8832013+MichaelYochpaz@users.noreply.github.com> Date: Sun, 26 Nov 2023 13:56:57 +0200 Subject: [PATCH 3/3] Update release-notes message --- Packs/Base/ReleaseNotes/1_32_49.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packs/Base/ReleaseNotes/1_32_49.md b/Packs/Base/ReleaseNotes/1_32_49.md index 96d0c0a7210c..e6ce77f3e2d3 100644 --- a/Packs/Base/ReleaseNotes/1_32_49.md +++ b/Packs/Base/ReleaseNotes/1_32_49.md @@ -3,4 +3,4 @@ ##### CommonServerPython -- Fixed an issue where polling commands might not work properly when the `polling` parameter is missing. +- Fixed an issue where polling commands might not work properly if the `polling` parameter is no provided.