Commit 1b0b7af1 authored by Guillaume Abrioux's avatar Guillaume Abrioux Committed by Dimitri Savineau
Browse files

osd: add a default value for 'default' in crush_rules

Let's default to `False` for the `default` attribute in `crush_rules`


Signed-off-by: default avatarGuillaume Abrioux <>
parent df8f853c
......@@ -24,7 +24,7 @@
with_items: "{{ hostvars[groups[mon_group_name][0]]['crush_rules'] | default(crush_rules) | unique }}"
delegate_to: '{{ groups[mon_group_name][0] }}'
run_once: true
when: item.default | bool
when: item.default | default(False) | bool
# If multiple rules are set as default (should not be) then the last one is taken as actual default.
# the with_items statement overrides each iteration with the new one.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment