Unexpected Exception, this is probably a bug: 'NoneType' object is not iterable #31249
Labels
affects_2.5
This issue/PR affects Ansible v2.5
bug
This issue/PR relates to a bug.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
ISSUE TYPE
COMPONENT NAME
ansible-playbook
ANSIBLE VERSION
also in 2.4, and observed in 2.3
CONFIGURATION
OS / ENVIRONMENT
ubuntu/xenial64
SUMMARY
Method
play.get_vars_files()
returns None rather than an empty list. In very large playbooks, it is not obvious what is causing the exception.STEPS TO REPRODUCE
If
vars_files
has no entries (note the comment), the play fails withTypeError: 'NoneType' object is not iterable
EXPECTED RESULTS
Ignore the empty list or issue a warning to the user.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: