[master 1/1] Put MDRaidArrayDevice.devices back, but mark it as deprecated.
dwlehman
installerbot-noreply at redhat.com
Wed Jul 29 22:35:22 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..d8ce0ca 100644
--- a/blivet/devices/md.py
+++ b/blivet/devices/md.py
@@ -433,6 +433,11 @@ def members(self):
return list(self.parents)
@property
+ @util.deprecated('1.11', "Use 'members' instead.")
+ def devices(self):
+ return self.members
+
+ @property
def complete(self):
""" An MDRaidArrayDevice is complete if it has at least as many
component devices as its count of active devices.
@@ -661,6 +666,7 @@ def members(self):
return self.parents[0].members
@property
+ @util.deprecated('1.11', "Use 'members' instead.")
def devices(self):
return self.parents[0].devices
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/61403273a49e6879ffce192db0aabc8f74837129
More information about the anaconda-patches
mailing list