community.general/lib/ansible/parsing
Toshio Kuratomi 61ae6424a3 An earlier optimization of ansible-doc -l caused failures. (#47012)
* An earlier optimization of ansible-doc -l caused failures.

The optimization quickly searches the plugin code for short_description
fields and then uses that in the -l output.  The searching was a bit too
naive and ended up pulling out malformed yaml.  This caused those
plugins to be omitted from the list of plugins of that type with
a warning that their documentation strings were wrong.

This change makes the documentation parser aware that the documentation
string could have a relative indent for all of its fields which makes it
robust in the face of this particular problem.

* Don't search for space after short_description:

Any whitespace would be valid.  In particular newline
2018-10-17 11:15:59 -04:00
..
utils Remove use of simplejson throughout code base (#43548) 2018-08-10 11:13:29 -05:00
vault Clean up Vault docs in User Guide. (#46188) 2018-09-28 10:16:58 -04:00
yaml Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
__init__.py Fix typo in lib/ansible/parsing/__init__.py (#16761) 2016-07-20 18:03:50 -04:00
ajson.py add note to inform awx team on change 2018-10-11 12:45:53 -04:00
dataloader.py Fix wrong python keyword (followup to #36357) (#41067) 2018-06-07 19:48:07 +05:30
metadata.py Guard against assignments that are not ast.Name in docs parsing (#35513) 2018-01-30 12:56:16 -06:00
mod_args.py Optimizations in mod_args parsing 2018-03-26 10:08:38 -07:00
plugin_docs.py An earlier optimization of ansible-doc -l caused failures. (#47012) 2018-10-17 11:15:59 -04:00
quoting.py ansible/parsing: PEP8 compliancy (#24701) 2017-05-18 18:41:00 +01:00
splitter.py Ensure _raw_params retain exact spaces 2018-09-28 19:19:58 +02:00