[PATCH 3/5] Remove obsolete conversion of size to float.

David Lehman dlehman at redhat.com
Tue Sep 23 19:14:15 UTC 2014


Resolves: rhbz#1140642
---
 blivet/devices.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/blivet/devices.py b/blivet/devices.py
index 339b525..66d30ee 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -2927,7 +2927,7 @@ class LVMLogicalVolumeDevice(DMDevice):
 
         if self.singlePV:
             # make sure there is at least one PV that can hold this LV
-            validpvs = [x for x in self.vg.pvs if float(x.size) >= self.req_size]
+            validpvs = [x for x in self.vg.pvs if x.size >= self.req_size]
             if not validpvs:
                 for dev in self.parents:
                     dev.removeChild()
@@ -3101,7 +3101,7 @@ class LVMLogicalVolumeDevice(DMDevice):
         lvm.lvremove(self.vg.name, self._name)
 
     def _getSinglePV(self):
-        validpvs = [x for x in self.vg.pvs if float(x.size) >= self.size]
+        validpvs = [x for x in self.vg.pvs if x.size >= self.size]
 
         if not validpvs:
             raise errors.SinglePhysicalVolumeError(self.singlePVerr)
-- 
1.9.3



More information about the anaconda-patches mailing list