summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorRadek Vykydal <rvykydal@redhat.com>2009-04-17 14:08:29 +0200
committerRadek Vykydal <rvykydal@redhat.com>2009-04-17 14:17:55 +0200
commitf193e010b825fab040af0e6c367f9e2e5103a4b6 (patch)
tree65a75623345c5dd4a0b67c3cebea548cb8e0004c /kickstart.py
parent571e7b84531f035f6ed568254be90412c0252806 (diff)
downloadanaconda-f193e010b825fab040af0e6c367f9e2e5103a4b6.tar.gz
anaconda-f193e010b825fab040af0e6c367f9e2e5103a4b6.tar.xz
anaconda-f193e010b825fab040af0e6c367f9e2e5103a4b6.zip
Fix editing of raid device (persistence of level choice) (#496159)
I didn't want to add another 0/'0'/'RAID0' tweaking so I made mdraid.raid_levels and mdraid deviceclass level attribute to contain constants for levels defined in mdraid.py.
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kickstart.py b/kickstart.py
index 87f81f946..de0101785 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -750,7 +750,7 @@ class Raid(commands.raid.F9_Raid):
raise KickstartValueError, formatErrorMsg(self.lineno, msg="The \"%s\" filesystem type is not supported." % type)
kwargs["name"] = devicename
- kwargs["level"] = rd.level.lower()
+ kwargs["level"] = rd.level
kwargs["parents"] = raidmems
kwargs["memberDevices"] = len(raidmems)
kwargs["totalDevices"] = kwargs["memberDevices"]+rd.spares