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 mangles tasks using "=" formatting #3940

Closed
tremble opened this issue Dec 11, 2023 · 0 comments · Fixed by #3945
Closed

--fix mangles tasks using "=" formatting #3940

tremble opened this issue Dec 11, 2023 · 0 comments · Fixed by #3945
Assignees
Labels

Comments

@tremble
Copy link

tremble commented Dec 11, 2023

Summary

if a task uses the old some_key= format ansible-lint --fix mangles it

Issue Type
  • Bug Report
OS / ENVIRONMENT
ansible-lint 6.22.1 using ansible-core:2.17.0.dev0 ansible-compat:4.1.10 ruamel-yaml:0.18.5 ruamel-yaml-clib:0.2.8
  • ansible installation method: source
  • ansible-lint installation method: pip
STEPS TO REPRODUCE

running ansible-lint --fix against the example YAML results in a junk return value:

- name: example playbook
  hosts: localhost
  tasks:
    - debug: msg='Hello there world'
Desired Behavior
---
- name: Example playbook
  hosts: localhost
  tasks:
    - ansible.builtin.debug:
        msg: "Hello there world"
Actual Behavior
---
- name: Example playbook
  hosts: localhost
  tasks:
    - ansible.builtin.debug:
        msg: "'Hello"
        cmd: there world'
@tremble tremble added bug new Triage required labels Dec 11, 2023
@audgirka audgirka self-assigned this Dec 11, 2023
@audgirka audgirka removed the new Triage required label Dec 11, 2023
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 a pull request may close this issue.

2 participants