ansible/test/units/playbook
Adrian Likins e166946a0a Fix redundant yaml error blurbs on ModArgs parse errors (#36923)
* Fix redundant yaml error blurbs on ModArgs parse errors

Some of the AnsibleParserErrors from parsing.mod_args
are created with the obj=some_yaml_ds options but
some are not.

If they were, we don't want to add another yaml_ds to
it, because that will result in double yaml error blurbs.
And since we dont need to add info, we can just re raise it.

But if there is no ._obj, add it here so we get the extra
detail in the error message (see issue #14790) and raise
a new AnsibleParserError instance.

Fixes #36848

* cleanup existing test_tasks pep8/sanity issues
2018-03-19 10:55:29 -04:00
..
role Fix include_role unit tests (#31920) 2017-11-02 10:36:15 -05:00
__init__.py
test_attribute.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
test_base.py less confusing 'args' message (#29053) 2017-09-06 18:20:06 -04:00
test_block.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
test_conditional.py Fix invalid string escape sequences. 2017-11-21 10:03:34 -08:00
test_helpers.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
test_included_file.py fixed test to new sig 2018-01-04 11:20:56 -05:00
test_play.py
test_play_context.py Fix undefined variables, basestring usage, and some associated python3 issues 2017-07-25 15:58:23 -07:00
test_playbook.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
test_taggable.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
test_task.py Fix redundant yaml error blurbs on ModArgs parse errors (#36923) 2018-03-19 10:55:29 -04:00