mirror of
https://github.com/ceph/ceph
synced 2024-12-27 22:13:28 +00:00
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:
parent
28cb13a970
commit
7f3c359849
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user