[PATCH 4/4] Don't reuse "name" from the global scope.

Chris Lumens clumens at redhat.com
Thu Jan 30 20:20:31 UTC 2014


---
 anaconda | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/anaconda b/anaconda
index c1ed412..c87d750 100755
--- a/anaconda
+++ b/anaconda
@@ -53,8 +53,8 @@ def exitHandler(rebootData, storage, exitCode=None):
         anaconda.storage.umountFilesystems(ignoreErrors=True, swapoff=False)
         devicetree = anaconda.storage.devicetree
         devicetree.teardownAll()
-        for name in devicetree.diskImages:
-            dev = devicetree.getDeviceByName(name)
+        for imageName in devicetree.diskImages:
+            dev = devicetree.getDeviceByName(imageName)
             for loop in dev.parents:
                 loop.controllable = True
             dev.deactivate(recursive=True)
-- 
1.8.3.1



More information about the anaconda-patches mailing list