Skip to content

Commit

Permalink
app_server
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalpalo committed May 21, 2024
1 parent 344e4dd commit 0885c4c
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion add-on/TA-Demisto/TA-Demisto.aob_meta

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions add-on/TA-Demisto/bin/ta_demisto/alert_actions_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,20 @@ def get_events(self):
sys.exit(2)

def prepare_meta_for_cam(self):
rf = None
try:
try:
rf = gzip.open(self.results_file, 'rt')
except ValueError: # Workaround for Python 2.7 on Windows
except ValueError: # Workaround for Python 2.7 on Windows
rf = gzip.open(self.results_file, 'r')
for num, result in enumerate(csv.DictReader(rf)):
result.setdefault('rid', str(num))
self.update(result)
self.invoke()
break
except FileNotFoundError:
self.log_info("No Results file found.")
if rf:
for num, result in enumerate(csv.DictReader(rf)):
result.setdefault('rid', str(num))
self.update(result)
self.invoke()
break
finally:
if rf:
rf.close()
Expand Down
2 changes: 1 addition & 1 deletion add-on/TA-Demisto/default/addon_builder.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# this file is generated by add-on builder automatically
# please do not edit it
[base]
builder_version = 4.1.3
builder_version = 4.2.0
builder_build = 0
is_edited = 1

1 change: 0 additions & 1 deletion add-on/TA-Demisto/default/alert_actions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ python.version = python3
description =
label = Create XSOAR Incident
is_custom = 1
is_cloud = None
payload_format = json
icon_path = alert_create_xsoar_incident.png
param.incident_name = Event from Splunk for host $result.host$
Expand Down
2 changes: 1 addition & 1 deletion add-on/TA-Demisto/default/app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build = 2

[launcher]
author = Palo Alto Networks
version = 4.1.2
version = 4.1.3
description = This application provides an alert action to create an incident in Cortex XSOAR.

[ui]
Expand Down
3 changes: 2 additions & 1 deletion add-on/TA-Demisto/default/server.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[shclustering]
conf_replication_include.ta_demisto_settings.conf = true
conf_replication_include.ta_demisto_account.conf = true
conf_replication_include.passwords.conf = true
conf_replication_include.passwords.conf = true
conf_replication_include.addon_builder = true
9 changes: 9 additions & 0 deletions add-on/TA-Demisto/default/ta_demisto_settings.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
[proxy]
proxy_enabled =
proxy_type = http
proxy_url =
proxy_port =
proxy_username =
proxy_password = None
proxy_rdns =

[logging]
loglevel = INFO

[additional_parameters]
ssl_cert_loc =
validate_ssl =

0 comments on commit 0885c4c

Please sign in to comment.