mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* Properly handle user selection of `None` as vars_files In a playbook, if a user has a playbook like: ``` - hosts: localhost connection: local vars_files: tasks: - .... ``` Then `vars_files` will be none, and cause a `TypeError` in vars-manager when it tries to iterate over them. To avoid this, I changed the getter to either send back the vars files from the user, or an empty list when the user passed `None`. * Only replace None with an empty list, not all falsey values * Catch error when vars_files isn't iterable * Move whole `for` loop into try/except and catch TypeError * Line length |
||
---|---|---|
.. | ||
role | ||
__init__.py | ||
attribute.py | ||
base.py | ||
become.py | ||
block.py | ||
conditional.py | ||
handler.py | ||
handler_task_include.py | ||
helpers.py | ||
included_file.py | ||
loop_control.py | ||
play.py | ||
play_context.py | ||
playbook_include.py | ||
role_include.py | ||
taggable.py | ||
task.py | ||
task_include.py |