[PATCH] Fix traceback when editing a pre-existing logical volume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix the traceback when editing a pre-existing logical volume, caused by:
http://git.fedorahosted.org/git/?p=anaconda.git;a=commitdiff;h=2798195d3f33335f6bdad32cbda9700b85acfb5d
---
 iw/partition_ui_helpers_gui.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
index 3d02704..5a66482 100644
--- a/iw/partition_ui_helpers_gui.py
+++ b/iw/partition_ui_helpers_gui.py
@@ -377,9 +377,10 @@ def createPreExistFSOptionSection(origrequest, maintable, row, mountCombo,
         if origfs.exists:
             reqlower = origrequest.minSize
 
-            geomsize = origrequest.partedPartition.geometry.getSize(unit="MB")
-            if (requpper != 0) and (requpper > geomsize):
-                requpper = geomsize
+            if origrequest.type == "partition":
+                geomsize = origrequest.partedPartition.geometry.getSize(unit="MB")
+                if (geomsize != 0) and (requpper > geomsize):
+                    requpper = geomsize
 
         adj = gtk.Adjustment(value = value, lower = reqlower,
                              upper = requpper, step_incr = 1)
-- 
1.6.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux