Skip to content

Commit

Permalink
ceph-volume lvm.prepare correctly format argument for vg/lv error
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Deza <[email protected]>
  • Loading branch information
Alfredo Deza committed Dec 1, 2017
1 parent a91f350 commit 7c0b006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ceph-volume/ceph_volume/devices/lvm/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ def prepare_device(self, arg, device_type, cluster_fsid, osd_fsid):
tags={'ceph.type': device_type})
else:
error = [
'Cannot use device (%s).',
'A vg/lv path or an existing device is needed' % arg]
'Cannot use device (%s).' % arg,
'A vg/lv path or an existing device is needed']
raise RuntimeError(' '.join(error))

raise RuntimeError('no data logical volume found with: %s' % arg)
Expand Down

0 comments on commit 7c0b006

Please sign in to comment.