]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: fix naming of a local variable in find_cluster_by_uuid
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 25 Mar 2013 15:24:00 +0000 (16:24 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 25 Mar 2013 15:24:00 +0000 (16:24 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/ceph-disk

index 61b91b9d5b60a5a964a2f7f989786afb5d338a7f..f3c504b46278c9603560aa76a9480a8193d32eb9 100755 (executable)
@@ -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':