Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix formatting in [magnum].labels #1248

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

freyes
Copy link
Member

@freyes freyes commented Jul 30, 2024

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

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
Copy link
Collaborator

@ajkavanagh ajkavanagh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ajkavanagh ajkavanagh merged commit 3b8450f into openstack-charmers:master Jul 30, 2024
3 checks passed
@freyes freyes deleted the fix-labels-fmt branch July 30, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants