summaryrefslogtreecommitdiffstats
path: root/src/utils/legacy.py
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2023-12-12 11:15:44 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2023-12-12 11:33:48 +0100
commitb97c4d157adfcbdaa0f7ede40bd68e54c0aaaef3 (patch)
tree57aaf8092a7a54ea5c967409fe364ec38c546a0e /src/utils/legacy.py
parentd34ef0ab25ab735f6c96fcf88da480c91a9c6a2c (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/utils/legacy.py')
-rw-r--r--src/utils/legacy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/legacy.py b/src/utils/legacy.py
index cfcec5e..6e907b4 100644
--- a/src/utils/legacy.py
+++ b/src/utils/legacy.py
@@ -25,6 +25,7 @@ class ImageInfo:
def __init__(self, filesystem=None, datasize=None):
self.filesystem = filesystem
self.datasize = datasize
+ self.size = 0
self.clonator = 'PARTCLONE'
self.compressor = 'LZOP'