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
(cherry picked from commit 5ea1973062)
This commit is contained in:
Sandor Zeestraten 2018-04-15 13:13:22 +02:00 committed by Frode Nordahl
parent 9163455219
commit 63a1fe3ac7
1 changed files with 1 additions and 1 deletions

View File

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