ceph-volume util.disk include partitions as top level devices in get_devices

Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
Alfredo Deza 2018-11-27 09:31:58 -05:00
parent 28cb13a970
commit 7f3c359849

View File

@ -798,5 +798,9 @@ def get_devices(_sys_block_path='/sys/block', _dev_path='/dev', _mapper_path='/d
metadata['path'] = diskname
metadata['locked'] = is_locked_raw_device(metadata['path'])
for part_name, part_metadata in metadata['partitions'].items():
part_abspath = '/dev/%s' % part_name
device_facts[part_abspath] = part_metadata
device_facts[diskname] = metadata
return device_facts