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

Add support for deep merge of argument spec to module_utils.api #52746

Open
wants to merge 2 commits into
base: devel
from

Conversation

Projects
None yet
2 participants
@davidmnoriega
Copy link
Contributor

davidmnoriega commented Feb 21, 2019

SUMMARY

When building a custom module, I wanted to use the pre-built argument_spec from ansible.module_utils.api, but to modify the existing arguments, not completely replace them which dict().update() will do. Here I use the dict_merge function from ansible.module_utils.common.dict_transformations to do that.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

ansible.module_utils.api

ADDITIONAL INFORMATION

davidmnoriega added some commits Feb 21, 2019

Adding dict_merge to module_utils.api argument specs
To support the usecase where one may want to use the pre-built argument specs while also modyfing the existing options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.