]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: remove unused variables from list_partitions()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 20 Mar 2013 11:17:45 +0000 (12:17 +0100)
committerSage Weil <sage@inktank.com>
Fri, 26 Apr 2013 20:40:04 +0000 (13:40 -0700)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
(cherry picked from commit 6a8120d4b0c4cfa851d473532eb2366534f8653d)

src/ceph-disk

index ab7a89321f211ee58bb58791655adbaeb10bb059..4c545f05aee0cde172f133e1129c1d6d8ce39323 100755 (executable)
@@ -163,7 +163,7 @@ def list_partitions(disk):
             fields = re.split('\s+', line)
             if len(fields) < 5:
                 continue
-            (_, major, minor, blocks, name) = fields
+           name = fields [4]
             if name != base and name.startswith(base):
                 ls.append('/dev/' + name)
     return ls