diff --git a/library/ceph_volume.py b/library/ceph_volume.py index 4224fb5b5..81a782631 100644 --- a/library/ceph_volume.py +++ b/library/ceph_volume.py @@ -275,7 +275,7 @@ def get_wal(wal, wal_vg): return wal -def batch(module, container_image): +def batch(module, container_image, report=None): ''' Batch prepare OSD devices ''' @@ -305,7 +305,8 @@ def batch(module, container_image): action = ['lvm', 'batch'] cmd = build_cmd(action, container_image, cluster) cmd.extend(['--%s' % objectstore]) - cmd.append('--yes') + if not report: + cmd.append('--yes') if container_image: cmd.append('--prepare') @@ -666,7 +667,7 @@ def run_module(): '--format=json', ] - cmd = batch(module, container_image) + cmd = batch(module, container_image, report=True) batch_report_cmd = copy.copy(cmd) batch_report_cmd.extend(report_flags)