]> 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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 21 Jul 2021 12:00:30 +0000 (14:00 +0200)
commitcf734e19b7251603020b10f027848a9df11b9e21
tree20ed08b3b5c4a4c4718ee5a497ede84713b38952
parent3cc8c667d02be6b773dcbc66688db2810a08115a
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