```
{% if enable_designate | bool %}
{% if designate_ns_record is string %}
dns_domain = {{ designate_ns_record }}.
{% endif %}
external_dns_driver = designate
```
so we only set the dns_domain is designate_ns_record is a string, which I understand is currently a tangled up mess, because we are using a single variable for multiple things, that is "designate_ns_record" is used as a string for dns_domain but as a list(?) for other purposes.
So I guess this is, strictly speaking, a bug, because at least the code should look like something like this (made up example):
the culprit seems to be this code:
https:/ /github. com/openstack/ kolla-ansible/ blob/77c18fa615 cc592976ae65a52 c0198a14e054876 /ansible/ roles/neutron/ templates/ neutron. conf.j2# L65
```
{% if enable_designate | bool %}
{% if designate_ns_record is string %}
dns_domain = {{ designate_ns_record }}.
{% endif %}
external_dns_driver = designate
```
so we only set the dns_domain is designate_ns_record is a string, which I understand is currently a tangled up mess, because we are using a single variable for multiple things, that is "designate_ ns_record" is used as a string for dns_domain but as a list(?) for other purposes.
So I guess this is, strictly speaking, a bug, because at least the code should look like something like this (made up example):
```
{% if enable_designate | bool %} up_variable_ containing_ a_single_ valid_domain }}.
dns_domain = {{ new_made_
external_dns_driver = designate
```