]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph_key: add a get_key function
authorSébastien Han <seb@redhat.com>
Wed, 21 Nov 2018 15:17:04 +0000 (16:17 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Thu, 29 Nov 2018 01:49:05 +0000 (01:49 +0000)
commitee96454980c59478adc25c49af04b43660fe6ece
tree8ac63b4f2063a4459f8d0c203ea87a3e3ff160da
parent26ea96424ce4d19ed3bab40df4944e1b76a3ece1
ceph_key: add a get_key function

When checking if a key exists we also have to ensure that the key exists
on the filesystem, the key can change on Ceph but still have an outdated
version on the filesystem. This solves this issue.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 691f373543d96d26b1af61c4ff7731fd888a9ce9)
library/ceph_key.py
library/test_ceph_key.py