Skip to content

Commit 7ab4335

Browse files
author
sd109
committed
Improve handling of empty extra labels variable
1 parent cea418a commit 7ab4335

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ansible/templates/magnum-capi-templates.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
keystone_auth_enabled: "false"
1717
capi_helm_chart_version: "{{ capi_helm_chart_release_data.json.tag_name }}"
1818
octavia_provider: {{ magnum_loadbalancer_provider }}
19-
{% if magnum_template_extra_labels is defined %}
19+
{% if magnum_template_extra_labels is defined and magnum_template_extra_labels is not none %}
2020
{{ magnum_template_extra_labels | to_nice_yaml | indent(4) -}}
2121
{% endif %}
2222
external_network_id: {{ magnum_external_net_name }}
@@ -31,4 +31,4 @@
3131
dns_nameserver: "{{ (magnum_cluster_default_dns_nameservers | default(['1.1.1.1', '8.8.8.8', '8.8.4.4'])) | join(',') }}"
3232
public: "{{ magnum_cluster_templates_public | default('True') }}"
3333

34-
{% endfor %}
34+
{% endfor %}

0 commit comments

Comments
 (0)