From a09452916b2fd145f0310a374486f23d54e9e814 Mon Sep 17 00:00:00 2001 From: mishalp-crest Date: Wed, 31 Jan 2024 15:08:13 +0530 Subject: [PATCH] initial commit --- LICENSE | 2 +- release_notes/unreleased.md | 1 + taniumrest.json | 6 +++--- taniumrest_connector.py | 6 +++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/LICENSE b/LICENSE index 271de55..c0cc138 100644 --- a/LICENSE +++ b/LICENSE @@ -198,4 +198,4 @@ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file + limitations under the License. diff --git a/release_notes/unreleased.md b/release_notes/unreleased.md index fbcb2fd..ba8ac4b 100644 --- a/release_notes/unreleased.md +++ b/release_notes/unreleased.md @@ -1 +1,2 @@ **Unreleased** +* Bug fix in 'execute action' action \ No newline at end of file diff --git a/taniumrest.json b/taniumrest.json index 2078c3a..cebe803 100644 --- a/taniumrest.json +++ b/taniumrest.json @@ -13,13 +13,13 @@ "fips_compliant": true, "license": "Copyright (c) 2019-2024 Splunk Inc.", "latest_tested_versions": [ - "Build (Windows): 7.5.2.3503 | Console: 3.0.64" + "Build (Windows): 7.5.4.1158 | Console: 3.2.24" ], - "app_version": "2.2.1", + "app_version": "2.3.0", "utctime_updated": "2022-01-07T20:22:22.000000Z", "package_name": "phantom_taniumrest", "main_module": "taniumrest_connector.py", - "min_phantom_version": "5.3.3", + "min_phantom_version": "6.1.1", "app_wizard_version": "1.0.0", "configuration": { "base_url": { diff --git a/taniumrest_connector.py b/taniumrest_connector.py index 0c9e7d9..3f2f2d9 100644 --- a/taniumrest_connector.py +++ b/taniumrest_connector.py @@ -555,15 +555,15 @@ def _execute_action_support(self, param, action_result): # noqa: 901 "The following key(s) are incorrect: {}. Please provide correct key(s)".format(', '.join(invalid_keys))) data = dict() - package_param = dict() + package_param = list() package_spec = { "source_id": package_id } if package_parameter and parameter_definition and len(parameter_definition.get("parameters")) != 0: for parameter_key, parameter_value in list(package_parameter.items()): - package_param.update({"key": parameter_key, "value": parameter_value}) + package_param.append({"key": parameter_key, "value": parameter_value}) - package_spec.update({"parameters": [package_param]}) + package_spec.update({"parameters": package_param}) if group_name: group_as_obj = None