[master 5/6] Add a property to get cached LVs in a VG
vpodzime
installerbot-noreply at redhat.com
Wed Aug 19 13:51:08 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 189a1bd..e9874ae 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/ed2ca91c5dc222f5331af8bc107ec422d606e058
More information about the anaconda-patches
mailing list