summaryrefslogtreecommitdiffstats
path: root/src/ogRest.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ogRest.py')
-rw-r--r--src/ogRest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index f46a331..65a2731 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -114,9 +114,9 @@ class ogThread():
jsonResp.addElement('partition', request.getPartition())
f = open(path, "r")
- lines = f.readlines()
+ output = f.read()
f.close()
- jsonResp.addElement('software', lines[0])
+ jsonResp.addElement('software', output)
response = restResponse(ogResponses.OK, jsonResp)
client.send(response.get())
@@ -295,7 +295,7 @@ class ogRest():
threading.Thread(target=ogThread.session, args=(client, request, self,)).start()
def process_software(self, client, request):
- path = '/tmp/CSft-' + client.ip + '-' + request.getPartition()
+ path = '/tmp/CSft-' + client.ip + '-' + str(request.getPartition())
threading.Thread(target=ogThread.software, args=(client, request, path, self,)).start()
def process_hardware(self, client):