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 quotes converting free-form syntax to yaml #4361

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

cavcrosby
Copy link
Contributor

Fixes #4319.

Copy link
Member

@ssbarnea ssbarnea left a comment

Choose a reason for hiding this comment

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

I love this PR and I hope we can merge it soon. The only issue is that the produced file would be reformatted again by the linter to remove the unnecessary double quotes on this string.

Once we address this, we should be able to merge it.

That is how the transformed file should look:

msg: String with spaces

@cavcrosby cavcrosby force-pushed the fix-quotes-free-form-yaml branch from e9ef02f to 21d8b21 Compare October 10, 2024 01:57
@cavcrosby cavcrosby force-pushed the fix-quotes-free-form-yaml branch from 21d8b21 to b6195b4 Compare October 10, 2024 02:12
@cavcrosby cavcrosby marked this pull request as ready for review October 10, 2024 05:07
@cavcrosby cavcrosby requested a review from a team as a code owner October 10, 2024 05:07
@cavcrosby cavcrosby requested review from Qalthos and alisonlhart and removed request for a team October 10, 2024 05:07
@cavcrosby cavcrosby requested a review from ssbarnea October 10, 2024 16:20
@cavcrosby cavcrosby force-pushed the fix-quotes-free-form-yaml branch from b6195b4 to fc70356 Compare October 18, 2024 19:58
@cavcrosby cavcrosby changed the title Fix quotes converting free-form syntax to yaml (#4319) Fix quotes converting free-form syntax to yaml Oct 18, 2024
YAML content has been changed to reflect that the YAML loader preserves
quotes used in YAML and to utilize the preferred_quote attribute.
Copy link
Contributor

@alisonlhart alisonlhart left a comment

Choose a reason for hiding this comment

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

@ssbarnea approves as well

@alisonlhart alisonlhart dismissed ssbarnea’s stale review October 30, 2024 13:29

Already re-reviewed

@alisonlhart alisonlhart merged commit 7b97493 into ansible:main Oct 30, 2024
26 checks passed
@cavcrosby cavcrosby deleted the fix-quotes-free-form-yaml branch October 31, 2024 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

--fix is breaking quotes in playbook when converting ini to yaml
3 participants