From d9c1289b7a88794e75b4e47aa7a54669be4b1dfa Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 19 Jun 2023 14:43:20 +0200 Subject: [PATCH] Fix retrievement keyrings from files With [1] usage of custom owner/group has been introduced. It converted client to be a list of mappings but it was missed in 1 place. [1] https://opendev.org/openstack/openstack-ansible-ceph_client/commit/fdd2aaa00b3753b393be5768f730f58d0a1e3b04 Closes-Bug: #2024339 Change-Id: Icfc16ca25f0b6b45a0de0bcdf4eac71ab302a120 --- tasks/ceph_get_keyrings_from_files.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/ceph_get_keyrings_from_files.yml b/tasks/ceph_get_keyrings_from_files.yml index e015537..0dff45c 100644 --- a/tasks/ceph_get_keyrings_from_files.yml +++ b/tasks/ceph_get_keyrings_from_files.yml @@ -21,7 +21,7 @@ {% set _keys = {} %} {% for client in ceph_client_filtered_clients %} {% set _ = _keys.update({ - client: lookup('file', ceph_keyrings_dir ~ '/' ~ client['name'] ~ '.keyring') + client['name']: lookup('file', ceph_keyrings_dir ~ '/' ~ client['name'] ~ '.keyring') }) %} {% endfor %}