Skip to content

Conversation

rob4226
Copy link
Contributor

@rob4226 rob4226 commented Apr 18, 2025

When the expand_argument_vars parameter is used on the ansible.builtin.command module, ansible-lint generates a false positive with the inline-env-var rule. The expand_argument_vars parameter was added to the ansible.builtin.command module in ansible-core 2.16 and it appears the inline-env-var lint rule was not updated. This commit updates the inline-env-var rule to support the expand_argument_vars parameter.

A test was added that fails prior to this change and succeeds after the change.

When the expand_argument_vars parameter is used on the
ansible.builtin.command module, ansible-lint generates a false positive
with the inline-env-var rule. The expand_argument_vars parameter was
added to the ansible.builtin.command module in ansible-core 2.16 and it
appears the inline-env-var lint rule was not updated. This commit
updates the inline-env-var rule to support the expand_argument_vars
parameter.
@ssbarnea ssbarnea enabled auto-merge June 12, 2025 15:06
@ssbarnea ssbarnea added this pull request to the merge queue Jun 12, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jun 12, 2025
@ssbarnea ssbarnea added this pull request to the merge queue Jun 13, 2025
Merged via the queue into ansible:main with commit ad27d5e Jun 13, 2025
28 checks passed
@rob4226 rob4226 deleted the fix-inline-env-var branch July 7, 2025 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants