1
0
mirror of https://github.com/ceph/ceph synced 2025-03-31 16:25:56 +00:00

ceph-volume: replace __ with _ in device_id

This matches behavior with common/blkdev from
5ee787944b

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2021-05-26 07:07:21 -05:00
parent e32589d1ad
commit 42d23c9fea

View File

@ -257,7 +257,9 @@ class Device(object):
# retrieve device_id on FreeBSD. Still figuring out if/how the
# python ioctl implementation does that on FreeBSD
dev_id = ''
dev_id.replace(' ', '_')
dev_id = dev_id.replace(' ', '_')
while '__' in dev_id:
dev_id = dev_id.replace('__', '_')
return dev_id
def _set_lvm_membership(self):