]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Make rule_name optional when defining items in openstack_pools
authorGiulio Fidente <gfidente@redhat.com>
Thu, 22 Feb 2018 18:57:47 +0000 (19:57 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 26 Feb 2018 09:23:02 +0000 (10:23 +0100)
Previously it was necessary to provide a value (eventually an
empty string) for the "rule_name" key for each item in
openstack_pools. This change makes that optional and defaults to
empty string when not given.

(cherry picked from commit a83e1aeea39b9c7ae2757b166f3def7d4f67f161)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-mon/tasks/openstack_config.yml

index 90c964cbd956df104a2de9a5207d9f8cad941215..7bf2293fe6e436be3a5bd2dc0aaafebefea1daef 100644 (file)
@@ -1,6 +1,6 @@
 ---
 - name: create openstack pool(s)
-  command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pg_num }} {{ item.rule_name }}"
+  command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pg_num }} {{ item.rule_name|default('') }}"
   with_items: "{{ openstack_pools | unique }}"
   changed_when: false
   failed_when: false