The ceph-disk list argument must be the device name without the leading
/dev/. This is error prone and silently does nothing. Strip the /dev/
prefix of ceph-disk list arguments so that it behaves as expected.
http://tracker.ceph.com/issues/13154 Fixes: #13154
Signed-off-by: Loic Dachary <ldachary@redhat.com>
"""
Return a list of devices and partitions
"""
- if not names:
+ if names:
+ names = map(lambda x: re.sub('^/dev/', '', x), names)
+ else:
names = os.listdir('/sys/block')
dev_part_list = {}
for name in names: