Closed DonEstefan closed 1 year ago
Thank you for reporting this. This is however not a bug in our collection, the deprecation warning is triggered by using with_community.general.flattened
from https://github.com/ansible-collections/community.general.
Here is an example playbook:
- hosts: localhost
gather_facts: False
tasks:
- name: test
debug:
msg: "{{ item }}"
with_community.general.flattened:
- a
- b
- c
which produces the output:
# ansible-playbook /test.yml
PLAY [localhost] **********************************************************************************************************************************************************************************************************************************
TASK [test] ***************************************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: "listify_lookup_plugin_terms" does not use "dataloader" anymore, the ability to pass it in will be removed in future versions. This feature will be removed in version 2.18. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
ok: [localhost] => (item=a) => {
"msg": "a"
}
ok: [localhost] => (item=b) => {
"msg": "b"
}
ok: [localhost] => (item=c) => {
"msg": "c"
}
PLAY RECAP ****************************************************************************************************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
The feature was deprecated in Ansible with https://github.com/ansible/ansible/pull/78244. And it seems this deprecation has not been applied to the community.general code.
I will open a PR in their repository but we have no influence on when this will be merged or shipped.
I have opened a PR in Ansible community.general (https://github.com/ansible-collections/community.general/pull/6074) and will now close this issue, since nothing can be done from our side.
Description
Reproduction steps
Current Behavior
"DEPRECATION WARNING" is shown
Expected Behavior
"DEPRECATION WARNING" is not shown
OS / Environment
centos8
Ansible Version
Collection Version
Additional information
No response