You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible/utils
Felix Fontein 8d93ba9120
Plugin/module docs: parse return values, add collection names in them (version_added_collection), and format them nicely in ansible-doc (#69796)
* Tag return value docs if they are a dict (and not str/None).

* Try to parse return docs as YAML.

* Properly dump return values in ansible-doc.

* Adjust plugin formatter.

* Add changelog fragment.

* Don't add 'default' for return values.

* Fix plugin_formatter.

* Only try to parse return docs if they are still a string.

* Add tests.

* Warn if RETURN cannot be parsed.

* Adjust tests. Also test for warning.

* if -> elif (otherwise EXAMPLE will be parsed too).

* Always parse return documentation, and fail if it is invalid YAML.

* Polishing.

* Mostly re-enable ansible-doc tests.

Listing from the local collection seems to be somewhat broken. I assume this
is why the test was disabled.

* Lint and make tests work with Python 2.

* Keep FQCNs in plugins (not modules), i.e. restore previous state.
5 years ago
..
collection_loader support hard coded module_defaults.yml groups for collections (#69919) 5 years ago
__init__.py limit extensions for files in group/host_vars dir 10 years ago
cmd_functions.py ansible/utils/: PEP8 compliancy (#24686) 8 years ago
color.py fix utils.color.stringc: enclosure non printable sequences in SOH,STX (#64751) 5 years ago
context_objects.py Move the arguments module into cli/ and context_objects into utils 6 years ago
display.py Deprecation revisited (#69926) 5 years ago
encrypt.py Minor typos (#50371) 6 years ago
galaxy.py Add support to install collections from git repositories (#69154) 5 years ago
hashing.py Enable additional pylint rules and resolve issues found. (#47221) 6 years ago
helpers.py preserve same order as inventory manager when using host lookup (#55331) 6 years ago
jsonrpc.py Revert "Allow httpapi for EOS resource modules (#66871)" (#67131) 5 years ago
listify.py Python 3.8 collections compatibility fixes. 6 years ago
multiprocessing.py Explicitly use multiprocessing fork start method (#63581) 5 years ago
path.py fixed fetch traversal from slurp (#68720) 5 years ago
plugin_docs.py Plugin/module docs: parse return values, add collection names in them (version_added_collection), and format them nicely in ansible-doc (#69796) 5 years ago
py3compat.py config encode errors should not be fatal (#63311) 5 years ago
sentinel.py Fieldattribute inheritance with defaults (#50891) 6 years ago
shlex.py Update module_utils.six to latest (#22855) 8 years ago
singleton.py Add a Singleton metaclass, use it with Display (#48935) 6 years ago
ssh_functions.py avoid constant checking controlpersist (#69910) 5 years ago
unicode.py Remove deprecated code (#34828) 7 years ago
unsafe_proxy.py Deprecation revisited (#69926) 5 years ago
vars.py ansible.utils.vars.isidentifier improvements (#58278) 5 years ago
version.py Fix SemanticVersion comparison (#69395) 5 years ago