community.general/lib/ansible/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 Fixes #12353 #20977 adds new option to galaxy cli to preserve scm meta (#34642) 2018-02-21 08:34:44 -05:00
__init__.py better error on bad playbook encoding 2017-09-14 08:53:15 -07:00
attribute.py Don't use getattr in _get_parent_attribute to avoid recursion issues (#33595) 2018-01-05 21:51:44 -05:00
base.py Provide a way to explicitly invoke the debugger (#34006) 2018-01-09 13:50:07 -06:00
become.py leftover from porting become to v2 that's unused 2017-07-24 10:12:17 -07:00
block.py Prevent reparenting a block with itself (#36075) 2018-02-13 09:30:05 -06:00
conditional.py Don't use getattr in _get_parent_attribute to avoid recursion issues (#33595) 2018-01-05 21:51:44 -05:00
handler.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
handler_task_include.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
helpers.py Address memory ballooning caused by task caching changes (#35921) 2018-02-08 15:28:07 -08:00
included_file.py Add support for defining index var for task loops 2018-02-05 22:14:05 -05:00
loop_control.py fix loop_control templating (#36124) 2018-02-14 15:52:19 -05:00
play.py caller to preprocess must be None aware (#33653) 2018-02-08 11:25:20 -06:00
play_context.py Use value of delegated transport for var lookup (#35658) 2018-02-02 17:17:19 +01:00
playbook_include.py normalize names 2017-12-11 18:20:04 -05:00
role_include.py Make include_x inheritance more congruent with docs (#32769) 2017-11-30 16:16:10 -06:00
taggable.py add 'never' tag (#34104) 2018-02-07 15:21:55 -08:00
task.py Fix redundant yaml error blurbs on ModArgs parse errors (#36923) 2018-03-19 10:55:29 -04:00
task_include.py Make include_x inheritance more congruent with docs (#32769) 2017-11-30 16:16:10 -06:00