mirror of https://github.com/ceph/ceph-ansible.git
ceph-volume: dirty hack
ceph-volume recently introduced a breaking change because of a `lvm batch` refactor. when rerunning `lvm batch --report --format json` on existing OSDs, it doesn't output a valid json on stdout. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/5893/head
parent
e49a5241f0
commit
ec52e93cba
|
@ -691,6 +691,8 @@ def run_module():
|
||||||
rc, cmd, out, err = exec_command(
|
rc, cmd, out, err = exec_command(
|
||||||
module, batch_report_cmd)
|
module, batch_report_cmd)
|
||||||
try:
|
try:
|
||||||
|
if not out:
|
||||||
|
out = '{}'
|
||||||
report_result = json.loads(out)
|
report_result = json.loads(out)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
strategy_changed_in_out = "strategy changed" in out
|
strategy_changed_in_out = "strategy changed" in out
|
||||||
|
|
Loading…
Reference in New Issue