Skip to content

Commit

Permalink
fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
liorblob committed Dec 5, 2018
1 parent 6a33e85 commit 9387291
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Scripts/script-ServiceNowCreateIncident.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ script: |
'query': query
}
user_result = demisto.executeCommand("servicenow-query-table", user_args)[0]
user_result = demisto.executeCommand('servicenow-query-table', user_args)[0]
user_data = demisto.get(user_result, 'Contents')
if not user_data:
return_error('Could not get the contents from the command result: ' + json.dumps(user_result))
Expand Down Expand Up @@ -67,7 +67,7 @@ script: |
'query': query
}
group_result = demisto.executeCommand("servicenow-query-table", group_args)[0]
group_result = demisto.executeCommand('servicenow-query-table', group_args)[0]
group_data = demisto.get(group_result, 'Contents')
if not group_data:
return_error('Could not get the contents from the command result: ' + json.dumps(group_result))
Expand Down Expand Up @@ -143,7 +143,7 @@ script: |
command_args['fields'] = ';'.join(fields)
command_res = demisto.executeCommand("servicenow-create-record", command_args)
command_res = demisto.executeCommand('servicenow-create-record', command_args)
result = {}
try:
entry = command_res[0]
Expand Down
4 changes: 2 additions & 2 deletions Scripts/script-ServiceNowQueryIncident.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ script: |
'query': query
}
user_result = demisto.executeCommand("servicenow-query-table", user_args)[0]
user_result = demisto.executeCommand('servicenow-query-table', user_args)[0]
user_data = demisto.get(user_result, 'Contents')
if not user_data:
return_error('Could not get the contents from the command result: ' + json.dumps(user_result))
Expand Down Expand Up @@ -112,7 +112,7 @@ script: |
command_args['query'] = query
command_res = demisto.executeCommand("servicenow-query-table", command_args)
command_res = demisto.executeCommand('servicenow-query-table', command_args)
result = {}
try:
entry = command_res[0]
Expand Down
6 changes: 3 additions & 3 deletions Scripts/script-ServiceNowUpdateIncident.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ script: |
'query': query
}
incident_result = demisto.executeCommand("servicenow-query-table", incident_args)[0]
incident_result = demisto.executeCommand('servicenow-query-table', incident_args)[0]
incident_data = demisto.get(incident_result, 'Contents')
if not incident_data:
return_error('Could not get the contents from the command result: ' + json.dumps(incident_result))
Expand Down Expand Up @@ -64,7 +64,7 @@ script: |
'query': query
}
user_result = demisto.executeCommand("servicenow-query-table", user_args)[0]
user_result = demisto.executeCommand('servicenow-query-table', user_args)[0]
user_data = demisto.get(user_result, 'Contents')
if not user_data:
return_error('Could not get the contents from the command result: ' + json.dumps(user_result))
Expand Down Expand Up @@ -98,7 +98,7 @@ script: |
'query': query
}
group_result = demisto.executeCommand("servicenow-query-table", group_args)[0]
group_result = demisto.executeCommand('servicenow-query-table', group_args)[0]
group_data = demisto.get(group_result, 'Contents')
if not group_data:
return_error('Could not get the contents from the command result: ' + json.dumps(group_result))
Expand Down

0 comments on commit 9387291

Please sign in to comment.