From 7c0b00615d46a9451cb3a7731594cd7864eabc07 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 1 Dec 2017 13:53:06 -0500 Subject: [PATCH] ceph-volume lvm.prepare correctly format argument for vg/lv error Signed-off-by: Alfredo Deza --- src/ceph-volume/ceph_volume/devices/lvm/prepare.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ceph-volume/ceph_volume/devices/lvm/prepare.py b/src/ceph-volume/ceph_volume/devices/lvm/prepare.py index 490c75dea013e..eb79b7d252ffb 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/prepare.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/prepare.py @@ -155,8 +155,8 @@ class Prepare(object): 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) -- 2.39.5