Replies: 1 comment 2 replies
-
This looks very much like #125 - but is still present. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sanity check
redhat.ansible
extension is in use and the language of the document in this bug report shows up asAnsible
Summary
Describe the bug
When something is define as boolean in the schema, like ignore_errors when the value is set by a variable, vscode show an error telling Incorrect type. Expected "boolean".yaml-schema: BeremothTaskModel, even with the filter bool to force the type of the variable.
To Reproduce
Create a task like:
fail:
msg: fail except in check mode
ignore_errors: "{{ ansible_check_mode }}"
Expected behavior
If I specify an ansible expression, I'm pretty sure you guys cannot figure out what type it will return. In that case, I take on responsibility and you guys shouldn't sow an error. Especially not for variables like
ansible_check_mode
which are universally used at especially this location.Platform:
Mac latest versions of everything, os, vscode, plugin. Sorry, I don't have access to a linux box.
Extension version
v0.7.1
VS Code version
Name: Ansible ID: redhat.ansible Beschreibung: Ansible language support Version: 0.7.1 Herausgeber: Red Hat Link zum Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=redhat.ansible
Ansible Version
OS / Environment
% uname -a
Darwin nathan.fritz.box 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_X86_64 x86_64
% ansible-lint --version
ansible-lint 5.3.2 using ansible 2.11.6
FATAL: Ansible CLI (2.11.6) and python module (2.12.1) versions do not match. This indicates a broken execution environment.
Relevant log output
Beta Was this translation helpful? Give feedback.
All reactions