]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: rename local variable shadowing builtin 119/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 19 Mar 2013 21:07:36 +0000 (22:07 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 19 Mar 2013 21:07:36 +0000 (22:07 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/ceph-disk

index dcd4386d4805c22bf5b0eeeceae73c8a14a8060f..387c7d670cc9aa0f0440a938635f064c81aabb5a 100755 (executable)
@@ -1339,10 +1339,10 @@ def find_cluster_by_uuid(uuid):
     no_fsid = []
     if not os.path.exists('/etc/ceph'):
         return None
-    for file in os.listdir('/etc/ceph'):
-        if not file.endswith('.conf'):
+    for conf_file in os.listdir('/etc/ceph'):
+        if not conf_file.endswith('.conf'):
             continue
-        cluster = file[:-5]
+        cluster = conf_file[:-5]
         u = get_conf(cluster, 'fsid')
         if u is None:
             no_fsid.append(cluster)