Skip to content

Commit eda1aba

Browse files
authored
Avoid "unable to evaluate string as dictionary" with args rule (#3150)
1 parent dae8941 commit eda1aba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ansiblelint/rules/args.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@
3333
"|".join(
3434
[
3535
r"^parameters are mutually exclusive:",
36+
# https://github.com/ansible/ansible-lint/issues/3128 as strings can be jinja
37+
# Do not remove unless you manually test if the original example
38+
# from the bug does not trigger the rule anymore. We were not able
39+
# to add a regression test because it would involve installing this
40+
# collection. Attempts to reproduce same bug with other collections
41+
# failed, even if the message originates from Ansible core.
42+
r"^unable to evaluate string as dictionary$",
3643
]
3744
),
3845
flags=re.MULTILINE | re.DOTALL,

0 commit comments

Comments
 (0)