]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix 'ceph_device' field in inventory 47562/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 11 Aug 2022 13:36:12 +0000 (15:36 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 11 Aug 2022 14:41:04 +0000 (16:41 +0200)
commit54fb7fd762c46c673c9766df5f18d77e6048f167
treea6d6f65c0880e7f62a01c6b22b36cd53227a5978
parentf0cea6f24b9241d72aafa79f431fd939a9a53c2b
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>
src/ceph-volume/ceph_volume/tests/util/test_device.py
src/ceph-volume/ceph_volume/util/device.py