]> 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:51 +0000 (18:08 -0400)
commit825aed5ec19bb782d4386f5c5d20d3762bc2daba
tree0fa32d5b70af938655e2e1e79b0dc296a3c779a4
parent7acd9686ab3e69f069efbb1668213d78403fec52
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