summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorRadek Vykydal <rvykydal@redhat.com>2009-03-13 13:58:03 +0100
committerRadek Vykydal <rvykydal@redhat.com>2009-03-13 16:18:30 +0100
commit96af8446516d5de40808de9f2fec0575088248e4 (patch)
tree3d95988c8273eca66969b8f76f4fbf1f7d41cd70 /iw
parent6ab09cd1dc61378e018dcef98ae48bdabf04e880 (diff)
downloadanaconda-96af8446516d5de40808de9f2fec0575088248e4.tar.gz
anaconda-96af8446516d5de40808de9f2fec0575088248e4.tar.xz
anaconda-96af8446516d5de40808de9f2fec0575088248e4.zip
Fix getting of number of total devices of sw raid.
The bug manifests itself in edit raid ui dialog of existing raid array. * storage/devices.py: For existing partitions use parents to get number of total devices in array, for new partitions use value from device instance which is initialized when the instance is created * iw.raid_dialog_gui.py: Initialize number of total devices when creating raid array in UI.
Diffstat (limited to 'iw')
-rw-r--r--iw/raid_dialog_gui.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/iw/raid_dialog_gui.py b/iw/raid_dialog_gui.py
index d45b582ed..099a9c965 100644
--- a/iw/raid_dialog_gui.py
+++ b/iw/raid_dialog_gui.py
@@ -246,6 +246,7 @@ class RaidEditor:
level=level,
format=format,
parents=raidmembers,
+ totalDevices=len(raidmembers),
memberDevices=members)
actions.append(ActionCreateDevice(request))
actions.append(ActionCreateFormat(request))