Skip to content

Commit a0ec1cd

Browse files
committed
Fix formatting in [magnum].labels
magnum-tempest-plugin since commit[0] is using ast.literal_eval() to parse the value set in [magnum].labels, so the formatting needs to be a Python dict. This is an example of how the string needs to look like to make the parser happy: >>> import ast >>> ast.literal_eval('{"a": "1:1"}') {'a': '1:1'} [0] https://opendev.org/openstack/magnum-tempest-plugin/commit/2fe075ae789e06ec58d37dc6f41382e2b64a8343#diff-8e9d4d1beb73d502d61e14564c76d54acf855bf8
1 parent 0718782 commit a0ec1cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zaza/openstack/charm_tests/tempest/templates/tempest_v3.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ flavor_id = {{ flavor_ref }}
153153
dns_nameserver = {{ test_name_server }}
154154
network_driver = flannel
155155
{%- if test_registry_prefix %}
156-
labels = container_infra_prefix={{ test_registry_prefix }}
156+
labels = {"container_infra_prefix": "{{ test_registry_prefix }}"
157157
insecure_registry = {{ test_registry_prefix }}
158158
{%- endif %}
159159
{%- endif %}

0 commit comments

Comments
 (0)