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: [DEPRECATION WARNING] when using the module #8410

Closed
1 task done
rgl opened this issue May 23, 2024 · 3 comments · Fixed by #8411
Closed
1 task done

locale_gen: [DEPRECATION WARNING] when using the module #8410

rgl opened this issue May 23, 2024 · 3 comments · Fixed by #8411
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)

Comments

@rgl
Copy link

rgl commented May 23, 2024

Summary

geting a "[DEPRECATION WARNING]" when using the module.

Issue Type

Bug Report

Component Name

locale_gen

Ansible Version

$ ansible --version
ansible [core 2.17.0]
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.11/dist-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] (/usr/bin/python3)
  jinja version = 3.1.4
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general
Collection                               Version
---------------------------------------- -------
community.general                        9.0.0  

Configuration

$ ansible-config dump --only-changed

OS / Environment

Ubuntu 22.04

Steps to Reproduce

- name: Add support for the pt_PT locale
  community.general.locale_gen:
    name: pt_PT.UTF-8

Expected Results

no deprecation warning.

Actual Results

TASK [base : Add support for the pt_PT locale] *********************************
[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
@felixfontein
Copy link
Collaborator

CC @russoz

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module plugins plugin (any type) labels May 23, 2024
@russoz
Copy link
Collaborator

russoz commented May 24, 2024

Saudações lusófonas, @rgl !!

This one is on me, will submit a PR shortly for that.

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 module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants