community.general/lib/ansible
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
..
cli Ansible Galaxy: skel for network role #37241 (#37251) 2018-03-09 13:31:27 -05:00
compat Enable wildcard import pylint (#35786) 2018-02-06 15:17:49 -08:00
config adds fix for terminal plugins 2018-03-05 08:54:40 -05:00
errors Make AnsibleActionDone a private exception 2018-01-22 23:36:34 -08:00
executor Connection error messages are unsafe: wrap them (#37329) 2018-03-13 16:20:24 -07:00
galaxy Ansible Galaxy: skel for network role #37241 (#37251) 2018-03-09 13:31:27 -05:00
inventory protect against plugins using verify incorrectly 2018-02-23 15:11:01 -05:00
module_utils Update Cisco NSO module required versions. (#36736) 2018-03-19 14:18:44 +00:00
modules cloudformation: add create_timeout attribute (#36445) 2018-03-19 10:38:17 -04:00
parsing Remove dead code 2018-03-12 12:13:19 -07:00
playbook Fix redundant yaml error blurbs on ModArgs parse errors (#36923) 2018-03-19 10:55:29 -04:00
plugins Close & remove paramiko connection where appropriate (#37528) 2018-03-16 13:28:04 -04:00
template Revert "remove query/q (#36315)" 2018-02-21 10:37:51 -08:00
utils Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
vars Fix ansible_lo being used inside of ansible_facts 2018-03-13 12:05:14 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Move module_set_locale and module_lang back to global 2018-01-22 18:38:15 -08:00
release.py Fix version in lib/ansible/release.py 2018-02-09 04:47:31 -08:00