]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph_pool: add idempotency to absent state
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 3 Sep 2020 17:11:31 +0000 (13:11 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 25 Sep 2020 17:55:20 +0000 (13:55 -0400)
commit1fa1b5b751a0811ea12ac23b669c6c060588ac01
tree8d34417dff9618c67cee07fb3e27d95278e2eaf2
parent8d49d97582d135660dc3a38e03d42d7f4a52178e
ceph_pool: add idempotency to absent state

When using the "absent" state on a non existing pool then the ceph_pool
module will fail and return a python traceback.

Instead we should check if the pool exit or not and execute the pool
deletion according to the result.
The state changed is now set when the pool is actually deleted.

This also disable add_file_common_args because we don't manipulate
files with this module.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 047a3e2653eccf37b71366a8fb414c17a8163508)
library/ceph_pool.py