Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mishalp-crest committed Jan 31, 2024
1 parent fa197fe commit a094529
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -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.
limitations under the License.
1 change: 1 addition & 0 deletions release_notes/unreleased.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**Unreleased**
* Bug fix in 'execute action' action
6 changes: 3 additions & 3 deletions taniumrest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions taniumrest_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a094529

Please sign in to comment.