mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ff47d3f766
* Make sure collection is a list if a str is given * Call field validation early on collections Because we are doing work on modifying the collections value before it is actually validated, we can validate it ourselves early to make sure the user supplies either a string or list. Dicts are not valid. The new validation allows us to simplify the _ensure_default_collection() function. And since the field is now static, we no longer need to specify a default for it, which also allows us to simplify the function. Since the default is now removed, we can also remove the sanity/ignore.txt entry for collectionsearch.py. New unit tests are added (and the existing one modified) that allow us to make sure that we throw a parser error if a user specifies something other than a string or list for the collections value everywhere it can be specified. * Revert removing the collection default The default is actually used, so restore it. * Fix unit tests in test_helpers.py affected by early collection validation |
5 years ago | |
---|---|---|
.. | ||
cli | 5 years ago | |
compat | 6 years ago | |
config | 5 years ago | |
errors | 5 years ago | |
executor | 5 years ago | |
galaxy | 5 years ago | |
inventory | 5 years ago | |
inventory_test_data/group_vars | 10 years ago | |
mock | 5 years ago | |
module_utils | 5 years ago | |
modules | 5 years ago | |
parsing | 5 years ago | |
playbook | 5 years ago | |
plugins | 5 years ago | |
regex | 6 years ago | |
template | 5 years ago | |
utils | 5 years ago | |
vars | 5 years ago | |
__init__.py | 8 years ago | |
requirements.txt | 5 years ago | |
test_constants.py | 8 years ago | |
test_context.py | 5 years ago |