Skip to content

Commit f6dddbd

Browse files
committed
TinMan.py: adjust to oz generate_diskimage size unit changing
In clalancette/oz#310 I'm proposing we change the unit of the `generate_diskimage` method's size arg from gibibytes to bytes. This needs adjusting to match that. Don't merge this unless and until that PR is merged. Signed-off-by: Adam Williamson <[email protected]>
1 parent 176f6e0 commit f6dddbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

imagefactory_plugins/TinMan/TinMan.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ def create_base_image(self, builder, template, parameters):
336336
try:
337337
disksize=getattr(self.guest, "disksize")
338338
except AttributeError:
339-
disksize = 10
339+
# 10 GiB
340+
disksize = 10*1024*1024*1024
340341
self.guest.generate_diskimage(size = disksize)
341342
# TODO: If we already have a base install reuse it
342343
# subject to some rules about updates to underlying repo

0 commit comments

Comments
 (0)