]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
library: do not always add --yes in batch mode v4.0.50
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 9 Feb 2021 14:28:08 +0000 (15:28 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 11 Mar 2021 12:53:06 +0000 (13:53 +0100)
commite6447bdc2b578a9c9ec4e5aaacf9274fd59d8496
tree6a4261750ab68da5b5b5f435be37d772a98d99f4
parent0d0723298fdf99203d15d1ff4e607706c46bbbd6
library: do not always add --yes in batch mode

When asking `ceph-volume` to report only in `lvm batch` context, there's
a bug described in bz1896803 [1] when `--yes` is passed (which by the
way isn't necessary with `--report`).
This commit ensure `--yes` isn't passed to `ceph-volume` when `--report`
is used.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1896803

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1896803
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit fe6d6ba62248853dabf9ecbd5fe702b319b8f14a)
library/ceph_volume.py