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

validate all nested arguments instead of using type=raw #112

Open
ktdreyer opened this issue Feb 26, 2020 · 0 comments
Open

validate all nested arguments instead of using type=raw #112

ktdreyer opened this issue Feb 26, 2020 · 0 comments

Comments

@ktdreyer
Copy link
Owner

Ansible 2.6+ allows nested options in the argument specification we pass into the constructor with AnsibleModule(argument_spec=...). This would replace our use of raw types in argument_spec, and it would allow us to validate user input even earlier. It might even do these string -> None or string -> int conversions for us that we are doing within koji_tag.py's normalize_inheritance().

This feature is documented at https://docs.ansible.com/ansible/latest/dev_guide/developing_program_flow_modules.html#argument-spec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant