summaryrefslogtreecommitdiffstats
path: root/src/ogRest.py
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-02-05 12:39:42 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-02-05 13:42:10 +0100
commitfe4236dcd805b46618dc2c5e7325d732ac5fd530 (patch)
tree3d0ef9d211b636efebf65d5f38ae381376100ce1 /src/ogRest.py
parent680214317eef44f86d99d329f886e56743596def (diff)
Fix /image/restore execution and response
Diffstat (limited to 'src/ogRest.py')
-rw-r--r--src/ogRest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index 0d51d6a..b123505 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -161,6 +161,11 @@ class ogThread():
client.send(response.get())
return
+ jsonResp = jsonResponse()
+ jsonResp.addElement('disk', request.getDisk())
+ jsonResp.addElement('partition', request.getPartition())
+ jsonResp.addElement('image_id', request.getId())
+
response = restResponse(ogResponses.OK, jsonResp)
client.send(response.get())