Disk selection determines clearpart.drives, not ignoredisk.onlyuse.
Filtering is separate from target disk selection.
---
pyanaconda/ui/gui/spokes/storage.py | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
def apply(self):
- self.data.ignoredisk.onlyuse = self.selected_disks[:]
+ self.data.clearpart.drives = self.selected_disks[:]
self.data.autopart.autopart = self.autopart
self.data.bootloader.location = "mbr"
self.data.clearpart.type = self.clearPartType
@@ -351,10 +351,10 @@ class StorageSpoke(NormalSpoke):
def status(self):
""" A short string describing the current status of storage setup. """
msg = _("No disks selected")
- if self.data.ignoredisk.onlyuse:
+ if self.data.clearpart.drives:
msg = P_(("%d disk selected"),
("%d disks selected"),
- len(self.data.ignoredisk.onlyuse)) % len(self.data.ignoredisk.onlyuse)
+ len(self.data.clearpart.drives)) % len(self.data.clearpart.drives)
if self.data.autopart.autopart:
msg = _("Automatic partitioning selected")
@@ -380,7 +380,7 @@ class StorageSpoke(NormalSpoke):
def refresh(self):
# synchronize our local data store with the global ksdata
- self.selected_disks = self.data.ignoredisk.onlyuse[:]
+ self.selected_disks = self.data.clearpart.drives[:]
self.autopart = self.data.autopart.autopart
# update the selections in the ui
@@ -417,7 +417,8 @@ class StorageSpoke(NormalSpoke):
if storageThread:
storageThread.join()
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
05-09-2012, 08:43 PM
David Lehman
Disk selection determines clearpart.drives, not ignoredisk.onlyuse.
Filtering is separate from target disk selection.
---
pyanaconda/ui/gui/spokes/storage.py | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
def apply(self):
- self.data.ignoredisk.onlyuse = self.selected_disks[:]
+ self.data.clearpart.drives = self.selected_disks[:]
self.data.autopart.autopart = self.autopart
self.data.bootloader.location = "mbr"
self.data.clearpart.type = self.clearPartType
@@ -351,10 +351,10 @@ class StorageSpoke(NormalSpoke):
def status(self):
""" A short string describing the current status of storage setup. """
msg = _("No disks selected")
- if self.data.ignoredisk.onlyuse:
+ if self.data.clearpart.drives:
msg = P_(("%d disk selected"),
("%d disks selected"),
- len(self.data.ignoredisk.onlyuse)) % len(self.data.ignoredisk.onlyuse)
+ len(self.data.clearpart.drives)) % len(self.data.clearpart.drives)
if self.data.autopart.autopart:
msg = _("Automatic partitioning selected")
@@ -380,7 +380,7 @@ class StorageSpoke(NormalSpoke):
def refresh(self):
# synchronize our local data store with the global ksdata
- self.selected_disks = self.data.ignoredisk.onlyuse[:]
+ self.selected_disks = self.data.clearpart.drives[:]
self.autopart = self.data.autopart.autopart
# update the selections in the ui
@@ -417,7 +417,8 @@ class StorageSpoke(NormalSpoke):
if storageThread:
storageThread.join()