]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: fix raw list
authorSébastien Han <seb@redhat.com>
Fri, 24 Jan 2020 16:25:42 +0000 (17:25 +0100)
committerSébastien Han <seb@redhat.com>
Thu, 30 Jan 2020 08:35:35 +0000 (09:35 +0100)
There is no json anymore, just plain output.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit e99eb8cc95c5f50ec13170f202226c3581e3f5e2)

src/ceph-volume/ceph_volume/devices/raw/list.py

index 5d610c7a02425c240ad700ff43fdd2d330b2d4f1..f72c135ed89336874a1a0653ad3dda6b7e5fc66c 100644 (file)
@@ -34,9 +34,7 @@ class List(object):
                 'lsblk', '--paths', '--nodeps', '--output=NAME', '--noheadings'
             ])
             assert not ret
-            r = json.loads(''.join(out))
-            for dev in r.get('blockdevices', []):
-                devs.append('/dev/' + dev['name'])
+            devs = out
         result = {}
         for dev in devs:
             logger.debug('Examining %s' % dev)