ceph-ansible/tests/library
Dimitri Savineau c1dd0a6cbe library/ceph_key: add output format parameter
The ceph_key module currently only supports the json output for the
info state.
When using this state on an entity then we something want the output
as:
  - plain for copying it to another node.
  - json in order to get only a subset information of the entity (like
the key or caps).

This patch adds the output_format parameter which uses json as a
default value for backward compatibility. It removes the internal and
hardcoded variable also called output_format.
In addition of json and plain outputs, there's also xml and yaml
values available.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 7d3d51d6da)
2022-09-12 14:22:13 +02:00
..
test_ceph_crush.py flake8: fix all tests/library/*.py files 2020-10-06 08:56:45 +02:00
test_ceph_key.py library/ceph_key: add output format parameter 2022-09-12 14:22:13 +02:00
test_ceph_osd_flag.py library: add ceph_osd_flag module 2020-12-15 17:36:28 +01:00
test_ceph_volume.py lib/ceph-volume: support zapping by osd_id 2021-07-26 17:49:42 +02:00