summaryrefslogtreecommitdiffstats
path: root/src/ogRest.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ogRest.py')
-rw-r--r--src/ogRest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index 8e54612..02d3d0c 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -205,7 +205,7 @@ class ogThread():
return
kibi = 1024
- datasize = int(image_info['datasize']) * kibi
+ datasize = int(image_info.datasize) * kibi
json_body = jsonBody()
json_body.add_element('disk', request.getDisk())
@@ -215,9 +215,9 @@ class ogThread():
json_body.add_element('name', request.getName())
json_body.add_element('repository', request.getRepo())
json_body.add_element('software', software)
- json_body.add_element('clonator', image_info['clonator'])
- json_body.add_element('compressor', image_info['compressor'])
- json_body.add_element('filesystem', image_info['filesystem'])
+ json_body.add_element('clonator', image_info.clonator)
+ json_body.add_element('compressor', image_info.compressor)
+ json_body.add_element('filesystem', image_info.filesystem)
json_body.add_element('datasize', datasize)
response = restResponse(ogResponses.OK, json_body)