On Thu, Dec 19, 2013 at 02:50:55PM -0500, Samantha N. Bueno wrote:
If a user chose 'select all disks', the selected/unselected
flag would
just get flipped for each device, even if it had already been selected
manually. This changes the logic to only toggle 'selected' if a disk is
not already present in selected_disks.
---
pyanaconda/ui/tui/spokes/storage.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/tui/spokes/storage.py b/pyanaconda/ui/tui/spokes/storage.py
index 6567fca..bd04c99 100644
--- a/pyanaconda/ui/tui/spokes/storage.py
+++ b/pyanaconda/ui/tui/spokes/storage.py
@@ -209,8 +209,9 @@ class StorageSpoke(NormalTUISpoke):
def _select_all_disks(self):
""" Mark all disks as selected for use in partitioning.
"""
- for i in self.disks:
- self._update_disk_list(i)
+ for disk in self.disks:
+ if disk.name not in self.selected_disks:
+ self._update_disk_list(disk)
def input(self, args, key):
"""Grab the disk choice and update things"""
--
1.8.3.1
Ack
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)