-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
MH CmdModuleHelper: deprecation #5370
MH CmdModuleHelper: deprecation #5370
Conversation
self.module.deprecate( | ||
'The CmdMixin used in classes CmdModuleHelper and CmdStateModuleHelper is being deprecated. ' | ||
'Modules should use community.general.plugins.module_utils.cmd_runner.CmdRunner instead.', | ||
version='8.0.0', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case it turns out someone from outside this collection is relying on it, we should bump this up to 9.0.0
. But as long as nobody is complaining, let's keep 8.0.0 :)
The remaining CI failures are unrelated. |
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #5413 🤖 @patchback |
* MH CmdModuleHelper: deprecation * add changelog fragment * add deprecation comments in many parts of the code (cherry picked from commit 91cac4c)
@russoz thanks! |
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
* MH CmdModuleHelper: deprecation * add changelog fragment * add deprecation comments in many parts of the code
* MH CmdModuleHelper: deprecation * add changelog fragment * add deprecation comments in many parts of the code
* MH CmdModuleHelper: deprecation * add changelog fragment * add deprecation comments in many parts of the code
SUMMARY
Since the introduction of
CmdRunner
in April 2022, it should be preferred toCmdMixin
and the derived classesCmdModuleHelper
andCmdStateModuleHelper
.This PR deprecates
CmdMixin
.ISSUE TYPE
COMPONENT NAME
plugins/module_utils/mh/mixins/cmd.py