mirror of https://github.com/ansible/ansible.git
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
(cherry picked from commit e166946a0a
)
pull/37276/head
parent
27382f38dc
commit
d64a352a40
Loading…
Reference in New Issue