Skip to content

Commit

Permalink
Avoid "unable to evaluate string as dictionary" with args rule (#3150)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Mar 7, 2023
1 parent dae8941 commit eda1aba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ansiblelint/rules/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@
"|".join(
[
r"^parameters are mutually exclusive:",
# https://github.com/ansible/ansible-lint/issues/3128 as strings can be jinja
# Do not remove unless you manually test if the original example
# from the bug does not trigger the rule anymore. We were not able
# to add a regression test because it would involve installing this
# collection. Attempts to reproduce same bug with other collections
# failed, even if the message originates from Ansible core.
r"^unable to evaluate string as dictionary$",
]
),
flags=re.MULTILINE | re.DOTALL,
Expand Down

0 comments on commit eda1aba

Please sign in to comment.