diff --git a/Packs/Base/ReleaseNotes/1_32_49.md b/Packs/Base/ReleaseNotes/1_32_49.md new file mode 100644 index 000000000000..e6ce77f3e2d3 --- /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 if the `polling` parameter is no provided. 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) 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",