[master 1/1] Put MDRaidArrayDevice.devices back, but mark it as deprecated.

dwlehman installerbot-noreply at redhat.com
Wed Jul 29 16:21:01 UTC 2015


From: David Lehman <dlehman at redhat.com>

---
 blivet/devices/md.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/blivet/devices/md.py b/blivet/devices/md.py
index 6efafe9..a4300ff 100644
--- a/blivet/devices/md.py
+++ b/blivet/devices/md.py
@@ -432,6 +432,11 @@ def members(self):
         """
         return list(self.parents)
 
+    @util.deprecated('1.11', "Use 'members' instead.")
+    @property
+    def devices(self):
+        return self.members
+
     @property
     def complete(self):
         """ An MDRaidArrayDevice is complete if it has at least as many
@@ -660,6 +665,7 @@ def members(self):
         # container's parents.
         return self.parents[0].members
 
+    @util.deprecated('1.11', "Use 'members' instead.")
     @property
     def devices(self):
         return self.parents[0].devices


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/013414bc8fd24bee72dca8c9d478fd2507ad0cc5


More information about the anaconda-patches mailing list