From 0b5fcfffe6d2f69bd4318cc93ef73195d948b9c5 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Mon, 25 Mar 2013 16:24:00 +0100 Subject: [PATCH] ceph-disk: fix naming of a local variable in find_cluster_by_uuid Signed-off-by: Danny Al-Gaaf --- src/ceph-disk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ceph-disk b/src/ceph-disk index 61b91b9d5b60a..f3c504b46278c 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -1410,10 +1410,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': -- 2.39.5