summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-25 16:24:00 +0100
committerSage Weil <sage@inktank.com>2013-04-26 13:40:06 -0700
commitecb34b81b843adaf9455503eb3ecc69ea94652a3 (patch)
tree74e5ce8673bd6f46e0bc104045dd309c3b519858
parent63eb85072f6a61552725bd04dfb261e5cd52a60a (diff)
downloadceph-ecb34b81b843adaf9455503eb3ecc69ea94652a3.tar.gz
ceph-disk: fix naming of a local variable in find_cluster_by_uuid
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de> (cherry picked from commit 0b5fcfffe6d2f69bd4318cc93ef73195d948b9c5)
-rwxr-xr-xsrc/ceph-disk6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ceph-disk b/src/ceph-disk
index 9c4b87dfdb4..54d53773923 100755
--- a/src/ceph-disk
+++ b/src/ceph-disk
@@ -1434,10 +1434,10 @@ def find_cluster_by_uuid(_uuid):
if not conf_file.endswith('.conf'):
continue
cluster = conf_file[:-5]
- u = get_conf(cluster, 'fsid')
- if u is None:
+ fsid = get_conf(cluster, 'fsid')
+ if fsid is None:
no_fsid.append(cluster)
- elif u == _uuid:
+ elif fsid == _uuid:
return cluster
# be tolerant of /etc/ceph/ceph.conf without an fsid defined.
if len(no_fsid) == 1 and no_fsid[0] == 'ceph':