[rhel7-branch][PATCH] Pass a Size instance to blivet instead of number of bytes
Vratislav Podzimek
vpodzime at redhat.com
Mon Jan 12 07:52:56 UTC 2015
Size instances are now used everywhere in blivet.
Related: rhbz#1171116
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/kickstart.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 1e5b993..795e131 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -231,7 +231,7 @@ def refreshAutoSwapSize(storage):
for request in storage.autoPartitionRequests:
if request.fstype == "swap":
- disk_space = int(getAvailableDiskSpace(storage))
+ disk_space = getAvailableDiskSpace(storage)
request.size = swap_lib.swapSuggestion(disk_space=disk_space)
break
--
2.1.0
More information about the anaconda-patches
mailing list