[blivet:master 14/21] Use has_redundancy property to decide how to add a member to an array.
mulhern
amulhern at redhat.com
Sat May 17 18:50:59 UTC 2014
Better than using explicit names.
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/devices.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/blivet/devices.py b/blivet/devices.py
index 54aaa62..3538b4f 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -3641,10 +3641,10 @@ class MDRaidArrayDevice(ContainerDevice):
def _add(self, member):
self.setup()
- if self.level.name == "raid0":
- raid_devices = self.memberDevices
- else:
+ if self.level.has_redundancy:
raid_devices = None
+ else:
+ raid_devices = self.memberDevices
mdraid.mdadd(self.path, member.path, raid_devices=raid_devices)
--
1.8.3.1
More information about the anaconda-patches
mailing list