Skip to content

Commit

Permalink
Simplify StorageDevice.disks.
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <amulhern@redhat.com>
  • Loading branch information
mulkieran committed Mar 3, 2015
1 parent 06b5c38 commit 001b30d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions blivet/devices/storage.py
Expand Up @@ -156,9 +156,7 @@ def disks(self):
""" A list of all disks this device depends on, including itself. """
_disks = []
for parent in self.parents:
for disk in parent.disks:
if disk not in _disks:
_disks.append(disk)
_disks.extend(d for d in parent.disks if d not in _disks)

if self.isDisk and not self.format.hidden:
_disks.append(self)
Expand Down

0 comments on commit 001b30d

Please sign in to comment.