]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
library: do not always add --yes in batch mode
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 9 Feb 2021 14:28:08 +0000 (15:28 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Sun, 14 Feb 2021 05:29:30 +0000 (06:29 +0100)
commit9359ee913fb6ca42dd9cb7cc30c0072bc0cb652d
tree1a2903208427e48fc49ebfda0e0a6d0a474a9d5e
parent2bf1b6b64d18482afde404e860dd1838b239fa89
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