Skip to content

Commit

Permalink
TinMan.py: adjust to oz generate_diskimage size unit changing
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
AdamWill committed Jan 23, 2024
1 parent 176f6e0 commit f6dddbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imagefactory_plugins/TinMan/TinMan.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ def create_base_image(self, builder, template, parameters):
try:
disksize=getattr(self.guest, "disksize")
except AttributeError:
disksize = 10
# 10 GiB
disksize = 10*1024*1024*1024
self.guest.generate_diskimage(size = disksize)
# TODO: If we already have a base install reuse it
# subject to some rules about updates to underlying repo
Expand Down

0 comments on commit f6dddbd

Please sign in to comment.