Confict between inline-env-var
and command-instead-of-shell
#4465
Labels
8000
inline-env-var
and command-instead-of-shell
#4465
Summary
It appears that the remediation to one issue is causing the rise of a different one.
For the Rule
inline-env-var
in the current version,the recommended correction is using
ansible.builtin.shell
instead ofansible.builtin.command
. But the rulecommand-instead-of-shell
requires to use command. Hence, the recommendations should not useansible.builtin.shell
for the correct code or at least include an example using purelyansible.builtin.command
.Issue Type
OS / ENVIRONMENT
N/A
STEPS TO REPRODUCE
Read the documentation for inline-env-var and then also read the documentation for command-instead-of-shell. The "fixes" for
inline-env-var
violatecommand-instead-of-shell
.Desired Behavior
The recommended and documented fix for one issue should not violate another issue.
Actual Behavior
The recommended and documented fix for one issue should violates another issue.
The text was updated successfully, but these errors were encountered: