]> git-server-git.apps.pok.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 06:17:58 +0000 (08:17 +0200)
commitcf6e33346e09e680d9b69cafdc24fdd8801cdbf4
tree7fc418dca798edc7a62bb09c6d5d110c7a844dcf
parent13036115e2862fc8ca9c04e1379fd793e0e7036a
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>
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