From dbcd960f8b1871c2a9f9decf20e4f6100b2483eb Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Thu, 19 Oct 2023 13:18:42 +0100 Subject: [PATCH] Fix bug with auto-fix ending too soon (#3855) --- src/ansiblelint/transformer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ansiblelint/transformer.py b/src/ansiblelint/transformer.py index 2ad808a7b4..2b8951350b 100644 --- a/src/ansiblelint/transformer.py +++ b/src/ansiblelint/transformer.py @@ -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