]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix 'ceph_device' field in inventory 47627/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 11 Aug 2022 13:36:12 +0000 (15:36 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 17 Aug 2022 04:28:08 +0000 (06:28 +0200)
commitd064e57dda935e52dfd31730d1fbac9434be0df5
treebb99cf20cf34cacfb8c15dec51167a22def5433c
parent09617327b15f515fc7e98053cc4ca25f18d05394
ceph-volume: fix 'ceph_device' field in inventory

`ceph-volume inventory` should display a boolean value for the field
'ceph_device'.

current result:

```
[root@6bda9ce84c4d /]# ceph-volume inventory /dev/vda

====== Device report /dev/vda ======

     path                      /dev/vda
     ceph device               None

```

expected result:

```
[root@6bda9ce84c4d /]# ceph-volume inventory /dev/sda

====== Device report /dev/sda ======

     path                      /dev/sda
     ceph device               True

[root@6bda9ce84c4d /]# ceph-volume inventory /dev/vda

====== Device report /dev/vda ======

     path                      /dev/vda
     ceph device               False

```

Fixes: https://tracker.ceph.com/issues/57100
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 54fb7fd762c46c673c9766df5f18d77e6048f167)
src/ceph-volume/ceph_volume/tests/util/test_device.py
src/ceph-volume/ceph_volume/util/device.py