mirror of
https://github.com/ceph/ceph
synced 2025-01-29 22:43:40 +00:00
ceph-volume util.disk when there are no devices mapped, skip to the next one
Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
parent
0176c1965e
commit
9b0f472aba
@ -686,6 +686,8 @@ def get_devices(_sys_block_path='/sys/block', _dev_path='/dev', _mapper_path='/d
|
||||
# Ensure that the diskname is an absolute path and that it never points
|
||||
# to a /dev/dm-* device
|
||||
diskname = mapper_devs.get(block) or dev_devs.get(block)
|
||||
if not diskname:
|
||||
continue
|
||||
|
||||
# If the mapper device is a logical volume it gets excluded
|
||||
if is_mapper_device(diskname):
|
||||
|
Loading…
Reference in New Issue
Block a user