Skip to content

Commit 65f3126

Browse files
author
scrungus
committed
fix old image discovery
1 parent d31b96e commit 65f3126

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/templates/old-images.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Old magnum images - hide until out of use
44

55
{% for item in matching_images %}
6-
{% if item.value.name not in new_template_data | map(attribute='value.name') | replace('-', '_') %}
6+
{% if (item.value.name | replace('_', '-')) not in new_template_data | map(attribute='value.name') %}
77
{{ item.key }}:
88
{% for key, value in item.value.items() %}
99
{% if value is mapping %}

examples/templates/old-templates.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Old magnum templates - hide until out of use
44

55
{% for item in matching_temps %}
6-
{% if item.key not in new_template_data | map(attribute='key') | replace('-', '_') %}
6+
{% if (item.key | replace('_', '-')) not in new_template_data | map(attribute='key') %}
77
{{ item.key }}:
88
{% for key, value in item.value.items() %}
99
{% if key == 'is_hidden' %}

examples/templates/templates.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
openstack_container_clusters_templates:
2727
{% if matching_temps is defined and matching_temps | length > 0 %}
2828
{% for item in matching_temps %}
29-
{% if (item.key| replace('_', '-')) not in (new_template_data | map(attribute='key')) %}
29+
{% if (item.key | replace('_', '-')) not in (new_template_data | map(attribute='key')) %}
3030
- "{{ '{{ ' + item.key + ' }}' }}"
3131
{% endif %}
3232
{% endfor %}

0 commit comments

Comments
 (0)