mirror of
https://github.com/ceph/ceph
synced 2024-12-17 08:57:28 +00:00
Merge pull request #3216 from cstavr/master
ceph-disk: Fix wrong string formatting Reviewed-by: Loic Dachary <ldachary@redhat.com>
This commit is contained in:
commit
8c2c48d8d4
@ -552,7 +552,7 @@ def verify_not_in_use(dev, check_partitions=False):
|
||||
raise Error('Device is mounted', dev)
|
||||
holders = is_held(dev)
|
||||
if holders:
|
||||
raise Error('Device is in use by a device-mapper mapping (dm-crypt?)' % dev, ','.join(holders))
|
||||
raise Error('Device %s is in use by a device-mapper mapping (dm-crypt?)' % dev, ','.join(holders))
|
||||
|
||||
if check_partitions and not is_partition(dev):
|
||||
basename = get_dev_name(os.path.realpath(dev))
|
||||
|
Loading…
Reference in New Issue
Block a user