Skip to content

Commit

Permalink
Fix bug with auto-fix ending too soon (#3855)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Oct 19, 2023
1 parent 83250b4 commit dbcd960
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ansiblelint/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def run(self) -> None:
self._do_transforms(file, ruamel_data or data, file_is_yaml, matches)

if not file.is_owned_by_ansible():
return
# Do nothing until we enable support for YAML 1.2
# https://github.com/ansible/ansible-lint/issues/3811
continue

if file_is_yaml:
# noinspection PyUnboundLocalVariable
Expand Down

0 comments on commit dbcd960

Please sign in to comment.