Skip to content

Commit

Permalink
Put MDRaidArrayDevice.devices back, but mark it as deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwlehman committed Jul 29, 2015
1 parent f4fc207 commit 013414b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blivet/devices/md.py
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 013414b

Please sign in to comment.