[PATCH] Don't traceback when PVs are encrypted or are not partitions.

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

 



---
 storage/devices.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 9d3b84a..32ad43d 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1715,7 +1715,7 @@ class LVMVolumeGroupDevice(DMDevice):
         # verify we have the space, then add it
         # do not verify for growing vg (because of ks)
         if not lv.exists and \
-           not [pv for pv in self.pvs if pv.req_grow] and \
+           not [pv for pv in self.pvs if getattr(pv, "req_grow", None)] and \
            lv.size > self.freeSpace:
             raise DeviceError("new lv is too large to fit in free space")
 
-- 
1.6.0.6

_______________________________________________
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