1f5afcd072
* Add tests for argspec choices type=list
* Add explicit interpreter discovery tests to validate modules returning ansible_facts still set interp
* Add explicit tests for missing_required_lib
* Add explicit tests for recursive_diff
* ci_complete ci_coverage
* Update data to cover more code/tests
* ci_complete ci_coverage
* Add argspec tests for aliases, and no_log
* Forgotten file
* ci_complete ci_coverage
* Add argspec tests for type int
* ci_complete ci_coverage
* Remove incidental_k8s
* ci_complete ci_coverage
* fix missing newline
* Remove incidental_sts_assume_role
* ci_complete ci_coverage
(cherry picked from commit c8590c7482
)
29 lines
694 B
Python
29 lines
694 B
Python
#!/usr/bin/python
|
|
# Copyright: (c) 2020, Matt Martz <matt@sivel.net>
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
from __future__ import absolute_import, division, print_function
|
|
__metaclass__ = type
|
|
|
|
from ansible.module_utils.basic import AnsibleModule
|
|
from ansible.module_utils.common.dict_transformations import recursive_diff
|
|
|
|
|
|
def main():
|
|
module = AnsibleModule(
|
|
{
|
|
'a': {'type': 'dict'},
|
|
'b': {'type': 'dict'},
|
|
}
|
|
)
|
|
|
|
module.exit_json(
|
|
the_diff=recursive_diff(
|
|
module.params['a'],
|
|
module.params['b'],
|
|
),
|
|
)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|