From e99eb8cc95c5f50ec13170f202226c3581e3f5e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Fri, 24 Jan 2020 17:25:42 +0100 Subject: [PATCH] ceph-volume: fix raw list MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit There is no json anymore, just plain output. Signed-off-by: Sébastien Han --- src/ceph-volume/ceph_volume/devices/raw/list.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ceph-volume/ceph_volume/devices/raw/list.py b/src/ceph-volume/ceph_volume/devices/raw/list.py index 5d610c7a024..f72c135ed89 100644 --- a/src/ceph-volume/ceph_volume/devices/raw/list.py +++ b/src/ceph-volume/ceph_volume/devices/raw/list.py @@ -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) -- 2.39.5