diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-01-20 12:28:41 +0100 |
---|---|---|
committer | Alvaro Neira Ayuso <aneira@soleta.eu> | 2020-01-21 17:32:42 +0100 |
commit | 96c2ddea2d407845441cd740c8330f15fc75b7a0 (patch) | |
tree | f3ca8ab72d015cbebc5bf961c98dcf22b888465f /src/ogRest.py | |
parent | 434bb272b53858e9a9df80986f7617adc80a2f43 (diff) |
Fix /hardware command Linux operation
This patch runs the script InventarioHardware with the right arguments.
Diffstat (limited to 'src/ogRest.py')
-rw-r--r-- | src/ogRest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ogRest.py b/src/ogRest.py index febf529..781fb80 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -131,9 +131,9 @@ class ogThread(): jsonResp = jsonResponse() f = open(path, "r") - lines = f.readlines() + text = f.read() f.close() - jsonResp.addElement('hardware', lines[0]) + jsonResp.addElement('hardware', text) response = restResponse(ogResponses.OK, jsonResp) client.send(response.get()) |