summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2012-10-10 13:02:17 -0500
committerDavid Lehman <dlehman@redhat.com>2012-10-12 09:24:55 -0500
commit860f2aaf9c4f1875cbab93daf5dbb52f6b532eb7 (patch)
treefcfded2fc3abf57f6d796dc73dd2cdf2a875ccf3
parent0f898de717c856338aae173bd9a45edc32a7e7b8 (diff)
downloadanaconda-860f2aaf9c4f1875cbab93daf5dbb52f6b532eb7.tar.gz
anaconda-860f2aaf9c4f1875cbab93daf5dbb52f6b532eb7.tar.xz
anaconda-860f2aaf9c4f1875cbab93daf5dbb52f6b532eb7.zip
Show the correct raid options for btrfs.
-rw-r--r--pyanaconda/ui/gui/spokes/custom.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index edc2cd00f..53cf30269 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -111,6 +111,10 @@ DEVICE_TYPE_MD = 1
DEVICE_TYPE_PARTITION = 2
DEVICE_TYPE_BTRFS = 3
+options_page_dict = {DEVICE_TYPE_LVM: 0,
+ DEVICE_TYPE_MD: 1,
+ DEVICE_TYPE_BTRFS: 2}
+
# raid feature names. These are the basis for some UI widget names.
raid_features = ["Performance", "Redundancy", "Error", "DistError",
"RedundantError"]
@@ -1910,7 +1914,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
self._optionsNotebook.hide()
else:
self._optionsNotebook.show()
- self._optionsNotebook.set_current_page(new_type)
+ self._optionsNotebook.set_current_page(options_page_dict[new_type])
raid_level = None
if new_type == DEVICE_TYPE_BTRFS: