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

autofix: python objects gets reformatting wrongly in yaml files #4222

Open
ssbarnea opened this issue Jun 17, 2024 · 0 comments
Open

autofix: python objects gets reformatting wrongly in yaml files #4222

ssbarnea opened this issue Jun 17, 2024 · 0 comments
Labels

Comments

@ssbarnea
Copy link
Member

ssbarnea commented Jun 17, 2024

Summary

When using autofix a change like below will be seen, which breaks the files. This was observed with devtools mkdocs.yml files, which happen to make use of this unpopular YAML feature (constructor tags):

format: !!python/name:pymdownx.superfences.fence_code_format
format: !!%20%20python/name:pymdownx.superfences.fence_code_format
Issue Type
  • Bug Report
OS / ENVIRONMENT
ansible-lint --version
  • ansible installation method: one of source, pip, OS package
  • ansible-lint installation method: one of source, pip, OS package
STEPS TO REPRODUCE
Desired Behavior

Possible security bugs should be reported via email to security@ansible.com

Actual Behavior

Please give some details of what is happening. Include a minimum complete
verifiable example
with:

  • minimized playbook to reproduce the error
  • the output of running ansible-lint including the command line used
  • if you're getting a stack trace, also the output of
    ansible-playbook --syntax-check playbook

@ssbarnea ssbarnea added new Triage required bug and removed new Triage required labels Jun 17, 2024
@ssbarnea ssbarnea pinned this issue Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant