Render crush-initial-weight option if set to 0

Fixes the conditional in the ceph.conf template so it renders the
crush-initial-weight config option if set to 0.

Change-Id: Iaecbdf52bd3731effa3132e61364918407116dbe
Closes-Bug: 1764077
This commit is contained in:
Sandor Zeestraten 2018-04-15 13:13:22 +02:00
parent a21be9a7ab
commit 5ea1973062
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ crush location = {{crush_location}}
{%- if upgrade_in_progress %} {%- if upgrade_in_progress %}
setuser match path = /var/lib/ceph/$type/$cluster-$id setuser match path = /var/lib/ceph/$type/$cluster-$id
{%- endif %} {%- endif %}
{%- if crush_initial_weight %} {%- if crush_initial_weight is not none %}
osd crush initial weight = {{ crush_initial_weight }} osd crush initial weight = {{ crush_initial_weight }}
{%- endif %} {%- endif %}
{% if global -%} {% if global -%}