mirror of https://github.com/ceph/ceph-ansible.git
7684d892c0
This construct doesn't work as intended since ansible/ansible#74212: ``` item.stdout | default('{}') | from_json ``` That PR made the `command` module return `stdout` even in check mode (setting it to the empty string), so `default()` has no effect in that case and `from_json()` fails to parse an empty string. Instead, `default()` needs to be invoked with its second argument set to `True`, so that it replaces any `False` value (such as an empty string) with its first argument: ``` item.stdout | default('{}', True) | from_json ``` Signed-off-by: Benoît Knecht <bknecht@protonmail.ch> |
||
---|---|---|
.. | ||
container_binary.yml | ||
convert_grafana_server_group_name.yml | ||
devices.yml | ||
facts.yml | ||
get_def_crush_rule_name.yml | ||
grafana.yml | ||
main.yml | ||
set_monitor_address.yml | ||
set_radosgw_address.yml |