Adjust condition for availability_zone definition
We're checking if octavia_amp_availability_zone is defined, while the variable is defined in defaults, so there is no clean way to undefine the availability_zone except to use config overrides and define to none. So whe change condition in a way to allow empty value to be treated as False which would result in availability_zone being undefined in the config. Change-Id: I86ffd71d6791dec700c381b695ab5a4bca8051a3
This commit is contained in:
parent
1ae94217ec
commit
2692caf1fc
|
@ -166,7 +166,7 @@ region_name = {{ keystone_service_region }}
|
|||
endpoint_type = {{ octavia_clients_endpoint }}
|
||||
enable_anti_affinity = {{ octavia_enable_anti_affinity }}
|
||||
|
||||
{% if octavia_amp_availability_zone is defined %}availability_zone={{ octavia_amp_availability_zone }}{%endif%}
|
||||
{% if octavia_amp_availability_zone %}availability_zone={{ octavia_amp_availability_zone }}{% endif %}
|
||||
|
||||
{% if octavia_cinder_enabled %}
|
||||
[cinder]
|
||||
|
|
Loading…
Reference in New Issue