Skip to content

Commit

Permalink
Fix for improper logging of ansible-basic.py invoked messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tanwigeetika1618 committed Oct 4, 2024
1 parent 3b5bee1 commit e015089
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ansiblelint/rules/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ class ValidationPassedError(Exception):
class CustomAnsibleModule(basic.AnsibleModule): # type: ignore[misc]
"""Mock AnsibleModule class."""

def __init__(self, *args: str, **kwargs: str) -> None:
def __init__(self, *args: str, **kwargs: Any) -> None:
"""Initialize AnsibleModule mock."""
kwargs["no_log"] = True
super().__init__(*args, **kwargs)
raise ValidationPassedError

Expand Down

0 comments on commit e015089

Please sign in to comment.