summaryrefslogtreecommitdiffstats
path: root/src/ogRest.py
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-07-04 16:33:01 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-07-15 09:50:30 +0200
commit9d8a95cc743853b60df47fbb08f51e2605fc2ad7 (patch)
tree7638f0ea86ba037dcf014c0ecddf9fb62bc34f60 /src/ogRest.py
parent43039749c50a4fadd085418e262a50ea0d4f1357 (diff)
live: add checksum field to image/create response
Report image checksum to ogserver through HTTP response.
Diffstat (limited to 'src/ogRest.py')
-rw-r--r--src/ogRest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index 8e90842..4a734f7 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -209,6 +209,7 @@ class ogThread():
json_body.add_element('size', image_info.size)
json_body.add_element('perms', image_info.perms)
json_body.add_element('lastupdate', image_info.mtime)
+ json_body.add_element('checksum', image_info.checksum)
response = restResponse(ogResponses.OK, json_body, seq=client.seq)
client.send(response.get())