From: Vratislav Podzimek vpodzime@redhat.com
This attribute is directly assigned to things like PartitionDevice.req_max_size which should be an instance of Size. Also a general rule of thumb is to store sizes as instances of Size so we should do it here too.
I don't really know why we ever converted the value to int() in that place, but tests seem to pass just fine without the conversion so I guess everything's just fine. --- blivet/partitioning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/partitioning.py b/blivet/partitioning.py index 6505825..6877cb7 100644 --- a/blivet/partitioning.py +++ b/blivet/partitioning.py @@ -1560,7 +1560,7 @@ def __init__(self, devices, size, grow=False, max_size=None):
self.devices.append(partition)
- self.size = int(size / len(devices)) + self.size = size / len(devices) self.grow = grow self.max_size = max_size