[PATCH 4/5] Use generator instead of list for auxiliary old_disk_names variable

Vratislav Podzimek vpodzime at redhat.com
Thu Apr 3 11:56:36 UTC 2014


Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 pyanaconda/ui/gui/spokes/custom.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 5914d4c..f5426f0 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -906,7 +906,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
                         # the disks need to be updated since we've replaced all
                         # of the devices with copies in the devicefactory error
                         # handler
-                        old_disk_names = [d.name for d in old_disks]
+                        old_disk_names = (d.name for d in old_disks)
                         old_disks = [self._storage_playground.devicetree.getDeviceByName(n) for n in old_disk_names]
                         try:
                             self._replace_device(old_device_type, device.size,
-- 
1.9.0



More information about the anaconda-patches mailing list