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

multiple modules: use new vardict in module #8411

Conversation

russoz
Copy link
Collaborator

@russoz russoz commented May 24, 2024

SUMMARY

Add

    use_old_vardict = False

to the module.

Fixes #8410

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

locale_gen

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module plugins plugin (any type) small_patch Hopefully easy to review labels May 24, 2024
@russoz russoz changed the title use new vardict in module locale_gen: use new vardict in module May 24, 2024
@ansibullbot ansibullbot removed the small_patch Hopefully easy to review label May 24, 2024
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-9 Automatically create a backport for the stable-9 branch labels May 24, 2024
@felixfontein
Copy link
Collaborator

Are there potentially more modules in c.g with the same deprecation?

@russoz
Copy link
Collaborator Author

russoz commented May 24, 2024

There are others:

plugins/modules/ansible_galaxy_install.py:178:class AnsibleGalaxyInstall(ModuleHelper):
plugins/modules/cpanm.py:145:class CPANMinus(ModuleHelper):
plugins/modules/django_command.py:64:class DjangoCommand(DjangoModuleHelper):
plugins/modules/gconftool2_info.py:55:class GConftoolInfo(ModuleHelper):
plugins/modules/gio_mime.py:78:class GioMime(ModuleHelper):
plugins/modules/hponcfg.py:87:class HPOnCfg(ModuleHelper):
plugins/modules/jira.py:472:class JIRA(StateModuleHelper):
plugins/modules/kernel_blacklist.py:60:class Blacklist(StateModuleHelper):
plugins/modules/mksysb.py:112:class MkSysB(ModuleHelper):
plugins/modules/pipx_info.py:141:class PipXInfo(ModuleHelper):
plugins/modules/snap_alias.py:93:class SnapAlias(StateModuleHelper):
plugins/modules/snap.py:178:class Snap(StateModuleHelper):

^ filtered out the ones that are already using the new VarDict

@felixfontein
Copy link
Collaborator

Do you want to fix them here, or in a separate PR?

@felixfontein
Copy link
Collaborator

(Would be great to get at least some of these in until Monday, so I can create a bugfix release for Ansible 10.0.0rc1.)

@russoz
Copy link
Collaborator Author

russoz commented May 24, 2024

Well, I wasn't planning on rushing with those but I suppose some of them are going to be low-hanging fruits. Will use this PR a little further.

@russoz russoz force-pushed the 8410-locale-gen-vardict-warning branch from e28ff83 to 72cced0 Compare May 24, 2024 23:06
@russoz russoz force-pushed the 8410-locale-gen-vardict-warning branch from 3250fd8 to 118a2bc Compare May 24, 2024 23:20
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added the module_utils module_utils label May 24, 2024
@russoz russoz changed the title locale_gen: use new vardict in module multiple modules: use new vardict in module May 24, 2024
@russoz
Copy link
Collaborator Author

russoz commented May 25, 2024

@felixfontein the jira and gio_mime modules will require more work, so I will leave those for separate PRs. Other than that, ready for review.

@felixfontein felixfontein merged commit ec88620 into ansible-collections:main May 26, 2024
132 checks passed
Copy link

patchback bot commented May 26, 2024

Backport to stable-9: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-9/ec886203fc5d7805fe867188084664e607d503b5/pr-8411

Backported as #8419

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label May 26, 2024
@felixfontein
Copy link
Collaborator

@russoz thanks!

patchback bot pushed a commit that referenced this pull request May 26, 2024
* use new vardict in module

* add changelog frag

* Update changelogs/fragments/8411-locale-gen-vardict.yml

Co-authored-by: Felix Fontein <[email protected]>

* set use_old_vardict to false in snap

* set use_old_vardict to false in cpanm

* set use_old_vardict to false in django mod helper

* set use_old_vardict to false in gconftool2_info

* set use_old_vardict to false in kernel_blacklist

* set use_old_vardict to false in mksysb

* set use_old_vardict to false in pipx_info

* set use_old_vardict to false in snap_alias

* update chglog frag

* fix typo

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit ec88620)
felixfontein pushed a commit that referenced this pull request May 26, 2024
…ict in module (#8419)

multiple modules: use new vardict in module (#8411)

* use new vardict in module

* add changelog frag

* Update changelogs/fragments/8411-locale-gen-vardict.yml

Co-authored-by: Felix Fontein <[email protected]>

* set use_old_vardict to false in snap

* set use_old_vardict to false in cpanm

* set use_old_vardict to false in django mod helper

* set use_old_vardict to false in gconftool2_info

* set use_old_vardict to false in kernel_blacklist

* set use_old_vardict to false in mksysb

* set use_old_vardict to false in pipx_info

* set use_old_vardict to false in snap_alias

* update chglog frag

* fix typo

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit ec88620)

Co-authored-by: Alexei Znamensky <[email protected]>
@russoz russoz deleted the 8410-locale-gen-vardict-warning branch May 26, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-9 Automatically create a backport for the stable-9 branch bug This issue/PR relates to a bug module_utils module_utils module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

locale_gen: [DEPRECATION WARNING] when using the module
3 participants