Skip to content

Commit

Permalink
Correct regression with use of --fix (#3783)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Sep 28, 2023
1 parent be66c76 commit f646c40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ansiblelint/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,10 @@ def merge_config(file_config: dict[Any, Any], cli_config: Options) -> Options:
for entry, default in lists_map.items():
if not getattr(cli_config, entry, None):
setattr(cli_config, entry, default)
if cli_config.write_list is None:
cli_config.write_list = []
elif cli_config.write_list == [WriteArgAction._default]: # noqa: SLF001
cli_config.write_list = ["all"]
return cli_config

for entry in bools:
Expand Down

0 comments on commit f646c40

Please sign in to comment.