]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph_key: remove 'update' state
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 17 Mar 2020 14:34:11 +0000 (15:34 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 1 Apr 2020 22:08:40 +0000 (18:08 -0400)
commitf02d9e1a9faef5527e279c298b9a3829f71e7d13
tree4dee00c118e0a66cc6313896d604eb07acfc2f4f
parented1f63134b1483243ba354e13543815f67177297
ceph_key: remove 'update' state

With this change, the state `present` is enough to update a keyring.
If the keyring already exist, it will be updated if caps or secret
passed to the module are different.
If the keyring doen't exist, it will be created.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1808367
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 553584cbd0d014429e665f998776e8d198f72d2b)
library/ceph_key.py
tests/library/test_ceph_key.py