]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: batch: call the right prepare method
authorJan Fajerski <jfajerski@suse.com>
Wed, 16 Sep 2020 13:43:00 +0000 (15:43 +0200)
committerJan Fajerski <jfajerski@suse.com>
Fri, 2 Oct 2020 08:17:45 +0000 (10:17 +0200)
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit e75ef77f23ae07463510ec213ac4007f29cbe2da)

src/ceph-volume/ceph_volume/devices/lvm/batch.py

index 7b8b7b65595ea3af56e05e5a4bfa612880c437b0..3770ee4840760ccc554dcb0cecc910ed2f76eb01 100644 (file)
@@ -418,7 +418,7 @@ class Batch(object):
             args = osd.get_args(defaults)
             if self.args.prepare:
                 p = Prepare([])
-                p.prepare(argparse.Namespace(**args))
+                p.safe_prepare(argparse.Namespace(**args))
             else:
                 c = Create([])
                 c.create(argparse.Namespace(**args))