You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 of ansible.builtin.command. But the rule command-instead-of-shell requires to use command. Hence, the recommendations should not use ansible.builtin.shell for the correct code or at least include an example using purely ansible.builtin.command.
Issue Type
Bug Report
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 violate command-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:
Okay, so these are the two options then. I was wondering if there are other ways. The second one seems a bit unclean to be part of the official doc. I am happy to create a PR with the first option.
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: