ceph-ansible/library
Guillaume Abrioux ff2043f92c ceph_key: handle error in a better way
When calling the `ceph_key` module with `state: info`, if the ceph
command called fails, the actual error is hidden by the module which
makes it pretty difficult to troubleshoot.

The current code always states that if rc is not equal to 0 the keyring
doesn't exist.

`state: info` should always return the actual rc, stdout and stderr.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1964889

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit d58500ade0)
2021-07-02 14:01:52 +02:00
..
__init__.py tests for the ceph_volume module 2017-12-11 09:58:06 -06:00
ceph_add_users_buckets.py library: flake8 ceph-ansible modules 2020-10-06 08:56:45 +02:00
ceph_crush.py library: Fix new-style modules check mode 2020-12-01 09:53:26 -05:00
ceph_key.py ceph_key: handle error in a better way 2021-07-02 14:01:52 +02:00
ceph_osd_flag.py library: add ceph_osd_flag module 2020-12-15 17:36:28 +01:00
ceph_volume.py ceph_volume: fix bug in `is_lv()` 2021-03-25 14:11:11 +01:00
config_template Using config_template 2015-12-16 17:19:50 +01:00
igw_client.py iscsi module linting 2018-10-30 14:41:36 +01:00
igw_gateway.py igw: Add check for mismatch ceph-iscsi and iscsigws.yml settings 2019-07-04 00:04:04 +00:00
igw_lun.py library: flake8 ceph-ansible modules 2020-10-06 08:56:45 +02:00
igw_purge.py library: flake8 ceph-ansible modules 2020-10-06 08:56:45 +02:00