Skip to content

Conversation

@Jkhall81
Copy link
Contributor

@Jkhall81 Jkhall81 commented Dec 31, 2025

Refactored ArgsRule to validate regex-captured parameter names against the task definition before access. This prevents KeyError crashes when module error messages contain keywords that the linter's parser misidentifies as task arguments.

Fixes #4843

@ssbarnea ssbarnea enabled auto-merge (squash) January 5, 2026 18:38
@github-actions github-actions bot added fix and removed fix labels Jan 5, 2026
@github-actions github-actions bot added fix and removed fix labels Jan 5, 2026
@ssbarnea ssbarnea merged commit 4a764a4 into ansible:main Jan 5, 2026
22 checks passed
@github-project-automation github-project-automation bot moved this from Review to Done in 🧰 devtools project board Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ArgsRule KeyError 'default' when linting community.general.ufw (policy parameter)

3 participants