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
- name: Blacklist old kernel modulebecome: truecommunity.general.kernel_blacklist:
name: x_tables
Expected Results
No warning
Actual Results
Works, but with warning.
TASK [install-nftables : Blacklist old IPv4 kernel module] *********************[DEPRECATION WARNING]: The DependencyMixin is being deprecated. Modules should use community.general.plugins.module_utils.deps instead. This feature will be removed from community.general in version 9.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
The text was updated successfully, but these errors were encountered:
The deprecation was added in #6465. @russoz do you think you can adjust the code to only emit it if it is used explicitly outside of ModuleHelper? Otherwise we should probably revert the deprecation for now.
hi, that mixin is not going to work outside of ModuleHelper (unless someone create a class that mimics some aspects of MH).
But I found out what seems to be the problem: that deprecation is popping up regardless if the dependency mixin is actually used - in fact kernel_blacklist does not use it. I will be submitting a PR tomorrow to address that.
Summary
When I use the module to blacklist a kernel module, a warning appears.
Issue Type
Bug Report
Component Name
kernel_blacklist
Ansible Version
Community.general Version
Configuration
OS / Environment
Debian 11-based
Steps to Reproduce
Expected Results
No warning
Actual Results
Works, but with warning.
Code of Conduct
The text was updated successfully, but these errors were encountered: