From: Danny Al-Gaaf Date: Tue, 19 Mar 2013 21:07:36 +0000 (+0100) Subject: ceph-disk: rename local variable shadowing builtin X-Git-Tag: v0.62~188^2~1^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F119%2Fhead;p=ceph.git ceph-disk: rename local variable shadowing builtin Signed-off-by: Danny Al-Gaaf --- diff --git a/src/ceph-disk b/src/ceph-disk index dcd4386d480..387c7d670cc 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -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)