Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

locale_gen uses deprecated VarDict from ModuleHelper #8433

Closed
1 task done
jyanesnotariado opened this issue May 28, 2024 · 4 comments
Closed
1 task done

locale_gen uses deprecated VarDict from ModuleHelper #8433

jyanesnotariado opened this issue May 28, 2024 · 4 comments
Labels
bug This issue/PR relates to a bug

Comments

@jyanesnotariado
Copy link

jyanesnotariado commented May 28, 2024

Summary

When I run the following I get a deprecation warning

- name: Ensure en_US locale is present
  community.general.locale_gen:
    state: present
    name: en_US.UTF-8
[DEPRECATION WARNING]: This class is using the old VarDict from ModuleHelper, 
which is deprecated. Set the class variable use_old_vardict to False and make 
the necessary adjustments.The old VarDict class will be removed in 
community.general 11.0.0. This feature will be removed from community.general 
in version 11.0.0. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.

I think it's related to the following issues:
#6903
#6820

Issue Type

Bug Report

Component Name

ansible inside awx-ee 24.4.0
installed with command:

ansible-galaxy collection install community.general -p /usr/share/ansible/collections

Ansible Version

$ ansible --version
ansible [core 2.15.12]
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.9/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.9.18 (main, Jan 24 2024, 00:00:00) [GCC 11.4.1 20231218 (Red Hat 11.4.1-3)] (/usr/bin/python3)
  jinja version = 3.1.4
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general

# /usr/share/ansible/collections/ansible_collections
Collection        Version
----------------- -------
community.general 9.0.0

Configuration

$ ansible-config dump --only-changed
CONFIG_FILE() = None

OS / Environment

No response

Steps to Reproduce

- name: Ensure en_US locale is present
  community.general.locale_gen:
    state: present
    name: en_US.UTF-8

Expected Results

No deprecation warning issued.

Actual Results

[DEPRECATION WARNING]: This class is using the old VarDict from ModuleHelper, 
which is deprecated. Set the class variable use_old_vardict to False and make 
the necessary adjustments.The old VarDict class will be removed in 
community.general 11.0.0. This feature will be removed from community.general 
in version 11.0.0. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

  • lib/ansible/galaxy

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot ansibullbot added the bug This issue/PR relates to a bug label May 28, 2024
@felixfontein
Copy link
Collaborator

Duplicate of #8410, has been fixed in #8411.

@felixfontein
Copy link
Collaborator

community.general 9.0.1 has a fix for this.

@jyanesnotariado
Copy link
Author

Sorry for the dupes, when I searched I didn't find it. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug
Projects
None yet
Development

No branches or pull requests

3 participants