[PATCH 2/6] Fix a bug when creating a new mountpoint with no given size (#948228).

Chris Lumens clumens at redhat.com
Thu Apr 4 19:29:32 UTC 2013


---
 pyanaconda/ui/gui/spokes/custom.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 4d0a1ec..b11f465 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1671,7 +1671,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
                     % (dialog.size, self._free_space))
 
         # if no size was entered, request as much of the free space as possible
-        if dialog.size.convertTo(spec="mb") < 1:
+        if not dialog.size or dialog.size.convertTo(spec="mb") < 1:
             size = self._free_space
         else:
             size = dialog.size
-- 
1.8.1.2



More information about the anaconda-patches mailing list