Move [oslo_policy] back inside Jinja if block

This avoids generating an empty [oslo_policy] section in nova.conf when
no custom policy file is defined.

Change-Id: I23fae8387573e7f37eda0f2a09cd937239afd93f
This commit is contained in:
Pierre Riteau 2023-11-21 21:39:13 +00:00
parent 151f510a6c
commit c2bd891405

@ -148,8 +148,8 @@ ssl_ca_file = {{ om_rabbitmq_cacert }}
amqp_durable_queues = true
{% endif %}
[oslo_policy]
{% if service_name in nova_services_require_policy_json and nova_policy_file is defined %}
[oslo_policy]
policy_file = {{ nova_policy_file }}
{% endif %}