]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: fix inventory with device arg
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 9 Sep 2022 13:00:20 +0000 (15:00 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 9 Sep 2022 14:52:12 +0000 (16:52 +0200)
commit4b3d174f8879bce8dd57dfda9bc19a310a46d0e8
treed6bbb6a652aa90cdd176406231e64983ab635b5e
parentd84a03e9896a68b718becb645858e31869008902
ceph-volume: fix inventory with device arg

there's no need to go through all devices present when
a device is passed to the `ceph-volume inventory` command.

Fixes: https://tracker.ceph.com/issues/57085
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
src/ceph-volume/ceph_volume/tests/conftest.py
src/ceph-volume/ceph_volume/util/device.py
src/ceph-volume/ceph_volume/util/disk.py