From eda1aba7ee679b9ddfdc9860dc6ed3d58292ce26 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Tue, 7 Mar 2023 15:04:16 +0000 Subject: [PATCH] Avoid "unable to evaluate string as dictionary" with args rule (#3150) --- src/ansiblelint/rules/args.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ansiblelint/rules/args.py b/src/ansiblelint/rules/args.py index fb46dd7bb5..eb18026f84 100644 --- a/src/ansiblelint/rules/args.py +++ b/src/ansiblelint/rules/args.py @@ -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,