Skip to content

Commit

Permalink
Fix to avoid spamming syslog with invoked messages (#4353)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanwigeetika1618 authored Oct 6, 2024
1 parent f74f6c4 commit a2e4ee5
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 a2e4ee5

Please sign in to comment.