Skip to content

Commit

Permalink
ceph-volume lvm.batch fix error reporting, Device objects aren't strings
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 267a386)
  • Loading branch information
Alfredo Deza committed Sep 13, 2018
1 parent 09aaef8 commit 53112d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ceph-volume/ceph_volume/devices/lvm/batch.py
Expand Up @@ -142,7 +142,8 @@ def execute(self, args):
strategy.report_pretty()
terminal.info('The above OSDs would be created if the operation continues')
if not prompt_bool('do you want to proceed? (yes/no)'):
terminal.error('aborting OSD provisioning for %s' % ','.join(args.devices))
devices = ','.join([device.abspath for device in args.devices])
terminal.error('aborting OSD provisioning for %s' % devices)
raise SystemExit(0)

strategy.execute()
Expand Down

0 comments on commit 53112d7

Please sign in to comment.