File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
site-config/node_custom_config Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,15 @@ os_region_name = {{ openstack_region_name }}
5
5
{# note: important to preserve newline after this #}
6
6
exempt_projects = {% for project_id in blazar_usage_project_exemptions %}{{ project_id }}{% if not loop.last %},{% endif %}{% endfor %}
7
7
8
+ {% set filters = [] %}
9
+ {% if enable_blazar_max_lease_enforcement | bool %}
10
+ {% set _ = filters.append("MaxLeaseDurationFilter") %}
11
+ {% endif %}
8
12
{% if enable_blazar_allocation_enforcement | bool %}
9
- enabled_filters = MaxLeaseDurationFilter, ExternalServiceFilter
13
+ {% set _ = filters.append("ExternalServiceFilter") %}
14
+ {% endif %}
15
+ enabled_filters = {{ filters | join(", ") }}
16
+
10
17
{% if blazar_external_service_endpoint is defined %}
11
18
external_service_base_endpoint = {{ blazar_external_service_endpoint }}
12
19
{% endif %}
@@ -19,9 +26,6 @@ external_service_check_update_endpoint = {{ blazar_external_service_check_update
19
26
{% if blazar_external_service_on_end_endpoint is defined %}
20
27
external_service_on_end_endpoint = {{ blazar_external_service_on_end_endpoint }}
21
28
{% endif %}
22
- {% else %}
23
- enabled_filters = MaxLeaseDurationFilter
24
- {% endif %}
25
29
max_lease_duration = {{ blazar_default_max_lease_duration }}
26
30
reservation_extension_window = {{ blazar_default_reservation_extension_window }}
27
31
You can’t perform that action at this time.
0 commit comments