]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix 'ceph_device' field in inventory 47626/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:29:09 +0000 (06:29 +0200)
commit396009607b15e19de18d9ca8c86ddf018d7de1c8
tree91ef385fd083bca34d9aa3beb8edd8711489cfa4
parent5180520fbdbc964e7eb3a908d660b2ed0324bb06
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