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:
parent
e32589d1ad
commit
42d23c9fea
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user