]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
common: fix py2 pool_list from_json when skipped
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 20 Jul 2021 19:53:48 +0000 (15:53 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 21 Jul 2021 12:57:53 +0000 (08:57 -0400)
commitf9d60644ad4fbce2bd5047e084b3800968bff72d
treeeff4979c3941b0401c101b27db31d1b41127637f
parentf3a9135241c861efbcd4a897bf348d3b9a634c14
common: fix py2 pool_list from_json when skipped

When using python 2 and the task with a loop is skipped then it generates
an error.

Unexpected templating type error occurred on
({{ (pool_list.stdout | from_json)['pools'] }}): expected string or buffer

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit cf6e33346e09e680d9b69cafdc24fdd8801cdbf4)
infrastructure-playbooks/cephadm-adopt.yml
infrastructure-playbooks/rolling_update.yml
infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml
roles/ceph-handler/tasks/handler_osds.yml