diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-12-12 11:15:44 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-12-12 11:33:48 +0100 |
commit | b97c4d157adfcbdaa0f7ede40bd68e54c0aaaef3 (patch) | |
tree | 57aaf8092a7a54ea5c967409fe364ec38c546a0e /src/ogRest.py | |
parent | d34ef0ab25ab735f6c96fcf88da480c91a9c6a2c (diff) |
live: report image size when creating image
add .size json field to report the real size of the image file.
Diffstat (limited to 'src/ogRest.py')
-rw-r--r-- | src/ogRest.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ogRest.py b/src/ogRest.py index 5a89d27..f567280 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -206,6 +206,7 @@ class ogThread(): json_body.add_element('compressor', image_info.compressor) json_body.add_element('filesystem', image_info.filesystem) json_body.add_element('datasize', datasize) + json_body.add_element('size', image_info.size) response = restResponse(ogResponses.OK, json_body, seq=client.seq) client.send(response.get()) |