]> 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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 25 Sep 2020 17:16:32 +0000 (19:16 +0200)
commit047a3e2653eccf37b71366a8fb414c17a8163508
tree8214609d355dfa39c61637b3fe5f67dba77386df
parent4808523403a4bacdd8860d317a4c3294871921fa
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>
library/ceph_pool.py