Skip to content

Commit 0157603

Browse files
authored
Merge pull request #85 from atlassian/HEIMDALL-12192-fix-oec-jec-solarwinds-web-help-desk-package-scripts
Fixed missing / incorrect actionMappings for SolarwindsWebHelpdesk.
2 parents 8269034 + b038fcd commit 0157603

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

solarwinds-web-help-desk/conf/jec-config.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@
88
"apiToken": "<apiToken>"
99
},
1010
"actionMappings": {
11-
"acknowledgeNotification": {
11+
"Acknowledge": {
12+
"filepath": "<path_of_script>",
13+
"sourceType": "<local | git>",
14+
"env": [],
15+
"stdout": "<path_of_output_file_of_script>"
16+
},
17+
"AddNote": {
18+
"filepath": "<path_of_script>",
19+
"sourceType": "<local | git>",
20+
"env": [],
21+
"stdout": "<path_of_output_file_of_script>"
22+
},
23+
"Close": {
1224
"filepath": "<path_of_script>",
1325
"sourceType": "<local | git>",
1426
"env": [],

solarwinds-web-help-desk/scripts/jec_action_executor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def send_close_request():
4848
logging.debug(LOG_PREFIX + " Solarwinds response:" + str(response.content))
4949
else:
5050
logging.error(
51-
LOG_PREFIX + " Could not execute at Solarwinds; response: " + response.status_code + ' ' + str(
51+
LOG_PREFIX + " Could not execute at Solarwinds; response: " + str(response.status_code) + ' ' + str(
5252
response.content))
5353

5454

@@ -66,7 +66,7 @@ def send_acknowledge_request():
6666
logging.debug(LOG_PREFIX + " Solarwinds response:" + str(response.content))
6767
else:
6868
logging.error(
69-
LOG_PREFIX + " Could not execute at Solarwinds; response: " + response.status_code + ' ' + str(
69+
LOG_PREFIX + " Could not execute at Solarwinds; response: " + str(response.status_code) + ' ' + str(
7070
response.content))
7171

7272

@@ -100,7 +100,7 @@ def send_add_note_request():
100100
logging.debug(LOG_PREFIX + " Solarwinds response:" + str(response.content))
101101
else:
102102
logging.error(
103-
LOG_PREFIX + " Could not execute at Solarwinds; response: " + response.status_code + ' ' + str(
103+
LOG_PREFIX + " Could not execute at Solarwinds; response: " + str(response.status_code) + ' ' + str(
104104
response.content))
105105

106106

0 commit comments

Comments
 (0)