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.
e75570ba83
If a YAML file fails to load due to a syntax error in a file, or there is an error in the last line of a
file, PyYAML reports the last line number of the file as the index where the error occurred.
When reading the file lines, we use that index to the get the relevant line. If the index value is out
of range, the relevant line is lost for error reporting.
Subtract one from the index value to avoid the IndexError in this specific scenario. It is possible
to still get an IndexError, which will be handled as it is currently.
* Update existing tests and add new tests
(cherry picked from commit
|
4 years ago | |
---|---|---|
.. | ||
_vendor | 5 years ago | |
ansible_test | 5 years ago | |
cli | 4 years ago | |
compat | 6 years ago | |
config | 4 years ago | |
errors | 4 years ago | |
executor | 4 years ago | |
galaxy | 4 years ago | |
inventory | 4 years ago | |
inventory_test_data/group_vars | 10 years ago | |
mock | 4 years ago | |
module_utils | 4 years ago | |
modules | 4 years ago | |
parsing | 4 years ago | |
playbook | 4 years ago | |
plugins | 4 years ago | |
regex | 6 years ago | |
template | 5 years ago | |
utils | 4 years ago | |
vars | 5 years ago | |
__init__.py | 8 years ago | |
requirements.txt | 5 years ago | |
test_constants.py | 4 years ago | |
test_context.py | 4 years ago |