summaryrefslogtreecommitdiffstats
path: root/src/ogRest.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ogRest.py')
-rw-r--r--src/ogRest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index dfd2930..2e5c7a7 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -159,6 +159,13 @@ class ogThread():
client.send(restResponse.getResponse(ogResponses.INTERNAL_ERR))
return
+ jsonResp = jsonResponse()
+ jsonResp.addElement('disk', httpparser.getDisk())
+ jsonResp.addElement('partition', httpparser.getPartition())
+ jsonResp.addElement('code', httpparser.getCode())
+ jsonResp.addElement('id', httpparser.getId())
+ jsonResp.addElement('name', httpparser.getName())
+ jsonResp.addElement('repository', httpparser.getRepo())
f = open(path, "r")
lines = f.readlines()
f.close()