]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph_key: restore file mode after a key is fetched
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 14 Nov 2019 09:30:34 +0000 (10:30 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 15 Nov 2019 05:10:40 +0000 (06:10 +0100)
commit8be15a46f54d30c06c22589005a6a74628d9ec9d
tree7d5b4ba4ccc1f4a93b0708b289178bf7e6a5b740
parent99cdcf9d293f7fef44adc1b98876f795ba073f5f
ceph_key: restore file mode after a key is fetched

when `import_key` is enabled, if the key already exists, it will only be
fetched using ceph cli, if the mode specified in the `ceph_key` task is
different from what is applied by the ceph cli, the mode isn't restored because
we don't call `module.set_fs_attributes_if_different()` before
`module.exit_json(**result)`

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