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
Matt Clay 3b86dc3e12
WIP - Fix ansible-doc bugs and add integration tests. (#62461)
* Add integration tests for ansible-doc.

* Enable tests that now pass

* Cleanup processing of plugin docs

* Mostly separate the steps of processing plugin docs

  1) Acquire source data
  2) Transform and calculate additonal data
  3) Format data for output
  4) Output data

  format_plugin_doc() is still mixing transformation and formatting but
  that should be fixed in a devel-only change

* Raise exceptions in _get_plugin_doc() on errors.

* Remove check to exclude on blacklisted extensions.  We already request
  only .py files

* If there is no DOCUMENTATION entry in the plugin, raise an exception
  from _get_plugin_doc().  Everywhere we use _get_plugin_doc(), this is
  treated as an error

* If there is no ANSIBLE_METADATA raise an exception as well as
  displaying of docs assumes that this has been set.

* If there is neither DOCUMENTATION nor ANSIBLE_METADATA, warn about the
  lack of METADATA and error on the lack of DOCUMENTATION.  Lack of
  DOCUMENTATION is more important so it is what the user should see.

* Add a few special cases for backwards compat.  These should probably
  be made errors in 2.10:
  * no docs but has metadata shows no documentation rather than an error
  * empty plugin file shows no doumentation rather than an error

* Simplify backwards compatibility logic.
5 years ago
..
cli WIP - Fix ansible-doc bugs and add integration tests. (#62461) 5 years ago
compat Update bundled copy of selectors2 from 1.1.0 to 1.1.1 (#55457) 5 years ago
config ansible-galaxy - add config to control the display wheel (#61902) 5 years ago
errors Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776) 6 years ago
executor Ensure we don't erase unsafe context in TaskExecutor.run on bytes (#62287) 5 years ago
galaxy ansible-galaxy - add config to control the display wheel (#61902) 5 years ago
inventory inventory: Handle IndexError while parsing limit file (#59776) 5 years ago
module_utils fix ios_lldp_global (#62420) 5 years ago
modules Update pip module docs (#62359) 5 years ago
parsing core: Handle empty extra vars in cli (#61831) 5 years ago
playbook Collection role relative deps (#61517) 5 years ago
plugins Fix "JSON object must be str, bytes or bytearray, not list" (#62350) 5 years ago
template add subdir support to collection loading (#60682) 5 years ago
utils Remove leading space in warning messages (#62002) 5 years ago
vars Use correct delegate_to hostnames in loops (#59659) 5 years ago
__init__.py
constants.py removed previouslly deprecated settings (#55662) 5 years ago
context.py Become plugins (#50991) 5 years ago
release.py Update release name for 2.10 5 years ago