]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-osd: Fix check mode for start osds tasks
authorBenoît Knecht <bknecht@protonmail.ch>
Mon, 19 Oct 2020 09:39:06 +0000 (11:39 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 19 Oct 2020 20:53:20 +0000 (22:53 +0200)
Correctly set `osd_ids_non_container.stdout_lines` to an empty list if it's
undefined (i.e. in check mode).

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit 8b0023cb77ce79ab4669783f16a5c295d54ce247)

roles/ceph-osd/tasks/start_osds.yml

index 3de63c0577d6459b90ab8a0f454a7595897e5941..b073ac1bab78c8f252a1fbf0abf7f99242d98aaf 100644 (file)
@@ -58,4 +58,4 @@
     enabled: yes
     masked: no
     daemon_reload: yes
-  with_items: "{{ ((ceph_osd_ids.stdout | default('{}') | from_json).keys() | list) | union(osd_ids_non_container.stdout_lines) | default([]) }}"
\ No newline at end of file
+  with_items: "{{ ((ceph_osd_ids.stdout | default('{}') | from_json).keys() | list) | union(osd_ids_non_container.stdout_lines | default([])) }}"