[master 5/6] Add a property to get cached LVs in a VG
vpodzime
installerbot-noreply at redhat.com
Tue Aug 18 12:25:19 UTC 2015
From: Vratislav Podzimek <vpodzime at redhat.com>
May come handy in the future.
---
blivet/devices/lvm.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/blivet/devices/lvm.py b/blivet/devices/lvm.py
index 034a0b4..ada2db8 100644
--- a/blivet/devices/lvm.py
+++ b/blivet/devices/lvm.py
@@ -418,6 +418,10 @@ def thinlvs(self):
return [l for l in self._lvs if isinstance(l, LVMThinLogicalVolumeDevice)]
@property
+ def cachedLVs(self):
+ return [l for l in self._lvs if l.cached]
+
+ @property
def complete(self):
"""Check if the vg has all its pvs in the system
Return True if complete.
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/1daf3674139c3c3f5aa7d199258cf8095bcb3d6a
More information about the anaconda-patches
mailing list