-
Notifications
You must be signed in to change notification settings - Fork 673
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 is breaking quotes in playbook when converting ini to yaml #4319
Labels
Comments
cavcrosby
added a commit
to cavcrosby/ansible-lint
that referenced
this issue
Oct 9, 2024
cavcrosby
added a commit
to cavcrosby/ansible-lint
that referenced
this issue
Oct 10, 2024
YAML content has been changed to reflect that the YAML loader preserves quotes used in YAML and to utilize the preferred_quote configuration.
cavcrosby
added a commit
to cavcrosby/ansible-lint
that referenced
this issue
Oct 10, 2024
YAML content has been changed to reflect that the YAML loader preserves quotes used in YAML and to utilize the preferred_quote configuration.
cavcrosby
added a commit
to cavcrosby/ansible-lint
that referenced
this issue
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.
cavcrosby
added a commit
to cavcrosby/ansible-lint
that referenced
this issue
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.
cavcrosby
added a commit
to cavcrosby/ansible-lint
that referenced
this issue
Oct 25, 2024
YAML content has been changed to reflect that the YAML loader preserves quotes used in YAML and to utilize the preferred_quote attribute.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
When playbook is using ini formating for tasks,
--fix
breaks quotes.Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
Create a playbook like following:
Run
ansible-lint --fix
:Check playbook:
Desired Behavior
Ansible-lint should not use
'
around the quotes.Possible security bugs should be reported via email to
security@ansible.com
Actual Behavior
Ansible-lint creates
'"/tmp/{{ script }}"'
which breaks playbook.Verbose run:
The text was updated successfully, but these errors were encountered: