]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: when using batch --report return journal/data size as ints
authorAndrew Schoen <aschoen@redhat.com>
Mon, 24 Sep 2018 21:37:35 +0000 (16:37 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 24 Sep 2018 21:37:35 +0000 (16:37 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/strategies/filestore.py

index 7c9f5dbb95b98a16ff61dae59ceaba2f429fe23e..259866a1273de7d580fc25c1f64582fb986d3285 100644 (file)
@@ -108,12 +108,12 @@ class SingleType(object):
                 data_percentage = data_size * 100 / device_size
                 osd = {'data': {}, 'journal': {}}
                 osd['data']['path'] = device.abspath
-                osd['data']['size'] = data_size.b
+                osd['data']['size'] = data_size.b.as_int()
                 osd['data']['parts'] = self.osds_per_device
                 osd['data']['percentage'] = int(data_percentage)
                 osd['data']['human_readable_size'] = str(data_size)
                 osd['journal']['path'] = device.abspath
-                osd['journal']['size'] = journal_size.b
+                osd['journal']['size'] = journal_size.b.as_int()
                 osd['journal']['percentage'] = int(100 - data_percentage)
                 osd['journal']['human_readable_size'] = str(journal_size)
                 osds.append(osd)