Closed koralowiec closed 4 weeks ago
check "ansible --version | grep 'core 2.13.0'" ansible --version | grep 'core 2.13.0'
The "false positive" caused by the fact that the output of check
function is piped to the grep 'core 2.13.0'
. And the output contains the "label" that is passed as the 1st argument ("ansible --version | grep 'core 2.13.0'"
).
As the result the grep is always successful - core 2.13.0
is always present in the check
's output
Feature id and version
ghcr.io/devcontainers-extra/features/ansible:2.0.17
Devcontainer base Image
mcr.microsoft.com/devcontainers/base:bookworm
What happened?
Ansible feature doesn't install
ansible-core
in the specified versiondevcontainer.json
:test_version_selection
scenario doesn't catch it when the tests are run - The followingcheck
doesn't fail even though the version is not matched:It fails when I change it to this:
Relevant log output
No response