mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 16:11:22 -07:00
ModuleHelper variables management (#2162)
* added metadata for variables in module helper * adjustments * added separate support for tracking changes * rewrote the diff code * added integration test for module_helper * using ansible.module_utils.common.dict_transformations.dict_merge * improved dependency management * restore ModuleHelper to base classes of CmdStateModuleHelper * added assertions to ensure the failing module name appears in the error messages * added test code for state-based modules * fixed test name * renamed class to VarMeta * small fixes * fixes from the PR * fixed VarDict.__set_attr__ * added VarDict.__getitem__() * added changelog fragment * adjustments per PR * ModuleHelper.output is now aware of conflicting variable names * Update plugins/module_utils/module_helper.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
533e01a3f9
commit
d2070277e8
11 changed files with 572 additions and 24 deletions
3
tests/integration/targets/module_helper/tasks/main.yml
Normal file
3
tests/integration/targets/module_helper/tasks/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
- include_tasks: msimple.yml
|
||||
- include_tasks: mdepfail.yml
|
||||
- include_tasks: mstate.yml
|
Loading…
Add table
Add a link
Reference in a new issue