Unrecognized type <<class 'ansible.template.native_helpers.AnsibleUndefined'>> · Issue #4579 · ansible/ansible-lint · GitHub
More Web Proxy on the site http://driver.im/
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
Trying to lint {{ item.subnet | ansible.utils.ipaddr('network') }} leads to jinja[invalid]: An unhandled exception occurred while templating '{{ item.subnet | ansible.utils.ipaddr('network') }}'. Error was a <class 'ansible.errors.AnsibleFilterError'>, original message: Unrecognized type <<class 'ansible.template.native_helpers.AnsibleUndefined'>> for ipaddr filter <value>
jinja[invalid]: An unhandled exception occurred while templating '{{ item.subnet | ansible.utils.ipaddr('network') }}'. Error was a <class 'ansible.errors.AnsibleFilterError'>, original message: Unrecognized type <<class 'ansible.template.native_helpers.AnsibleUndefined'>> for ipaddr filter <value>
play-test_lint.yml:9 Task/Handler: Test lint
The text was updated successfully, but these errors were encountered:
Summary
Exception with ipaddr filter
Issue Type
OS / ENVIRONMENT
Ansible EE based on RHEL-ubi9-minimal
STEPS TO REPRODUCE
Trying to lint
{{ item.subnet | ansible.utils.ipaddr('network') }}
leads tojinja[invalid]: An unhandled exception occurred while templating '{{ item.subnet | ansible.utils.ipaddr('network') }}'. Error was a <class 'ansible.errors.AnsibleFilterError'>, original message: Unrecognized type <<class 'ansible.template.native_helpers.AnsibleUndefined'>> for ipaddr filter <value>
Desired Behavior
Lint OK since there is no error
Actual Behavior
Playbook:
Lint:
The text was updated successfully, but these errors were encountered: