diff options
Diffstat (limited to 'src/ogRest.py')
-rw-r--r-- | src/ogRest.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/ogRest.py b/src/ogRest.py index 5731350..a30c494 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -97,16 +97,12 @@ class ogThread(): ogRest.send_internal_server_error(client, exc=e) return - if request.getEcho(): - json_body = jsonBody() - json_body.add_element('cmd', cmd) - json_body.add_element('out', shellout) - json_body.add_element('retcode', retcode) - response = restResponse(ogResponses.OK, json_body, seq=client.seq) - client.send(response.get()) - else: - response = restResponse(ogResponses.OK, seq=client.seq) - client.send(response.get()) + json_body = jsonBody() + json_body.add_element('cmd', cmd) + json_body.add_element('out', shellout) + json_body.add_element('retcode', retcode) + response = restResponse(ogResponses.OK, json_body, seq=client.seq) + client.send(response.get()) ogRest.state = ThreadState.IDLE |