[PATCH 09/16] Show the correct raid options for btrfs.
David Lehman
dlehman at redhat.com
Thu Oct 11 23:45:59 UTC 2012
---
pyanaconda/ui/gui/spokes/custom.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index edc2cd0..53cf302 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:
--
1.7.7.6
More information about the anaconda-patches
mailing list