ansible/lib/ansible/utils
Matt Davis f86345f777
Collection content loading (#52194)
* basic plugin loading working (with many hacks)

* task collections working

* play/block-level collection module/action working

* implement PEP302 loader

* implicit package support (no need for __init.py__ in collections)
* provides future options for secure loading of content that shouldn't execute inside controller (eg, actively ignore __init__.py on content/module paths)
* provide hook for synthetic collection setup (eg ansible.core pseudo-collection for specifying built-in plugins without legacy path, etc)

* synthetic package support

* ansible.core.plugins mapping works, others don't

* synthetic collections working for modules/actions

* fix direct-load legacy

* change base package name to ansible_collections

* note

* collection role loading

* expand paths from installed content root vars

* feature complete?

* rename ansible.core to ansible.builtin

* and various sanity fixes

* sanity tweaks

* unittest fixes

* less grabby error handler on has_plugin

* probably need to replace with a or harden callers

* fix win_ping test

* disable module test with explicit file extension; might be able to support in some scenarios, but can't see any other tests that verify that behavior...

* fix unicode conversion issues on py2

* attempt to keep things working-ish on py2.6

* python2.6 test fun round 2

* rename dirs/configs to "collections"

* add wrapper dir for content-adjacent

* fix pythoncheck to use localhost

* unicode tweaks, native/bytes string prefixing

* rename COLLECTION_PATHS to COLLECTIONS_PATHS

* switch to pathspec

* path handling cleanup

* change expensive `all` back to or chain

* unused import cleanup

* quotes tweak

* use wrapped iter/len in Jinja proxy

* var name expansion

* comment seemingly overcomplicated playbook_paths resolution

* drop unnecessary conditional nesting

* eliminate extraneous local

* zap superfluous validation function

* use slice for rolespec NS assembly

* misc naming/unicode fixes

* collection callback loader asks if valid FQ name instead of just '.'
* switch collection role resolution behavior to be internally `text` as much as possible

* misc fixmes

* to_native in exception constructor
* (slightly) detangle tuple accumulation mess in module_utils __init__ walker

* more misc fixmes

* tighten up action dispatch, add unqualified action test

* rename Collection mixin to CollectionSearch

* (attempt to) avoid potential confusion/conflict with builtin collections, etc

* stale fixmes

* tighten up pluginloader collections determination

* sanity test fixes

* ditch regex escape

* clarify comment

* update default collections paths config entry

* use PATH format instead of list

* skip integration tests on Python 2.6

ci_complete
2019-03-28 10:41:39 -07:00
..
__init__.py
_build_helpers.py plugin_formatter.py: Improve the output when processing docs (#46541) 2018-12-18 11:23:49 -06:00
cmd_functions.py
collection_loader.py Collection content loading (#52194) 2019-03-28 10:41:39 -07:00
color.py
context_objects.py Move the arguments module into cli/ and context_objects into utils 2019-01-03 18:12:23 -08:00
display.py Allow user to control output of verbose messages (#52948) 2019-03-05 16:08:15 -05:00
encrypt.py Minor typos (#50371) 2019-01-15 11:37:00 +00:00
hashing.py Enable additional pylint rules and resolve issues found. (#47221) 2018-10-18 13:38:08 -07:00
helpers.py skip all hidden keys, allow exclude list 2017-08-28 12:56:14 -04:00
jsonrpc.py Don't fail if ConnectionError has no code (#53455) 2019-03-07 10:04:08 -05:00
listify.py Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
path.py Fix encoding handling in unfrackpath. 2019-03-21 16:19:54 -07:00
plugin_docs.py interpreter discovery message tweaks (#53155) 2019-02-28 17:53:55 -08:00
py3compat.py Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
sentinel.py Fieldattribute inheritance with defaults (#50891) 2019-01-23 11:40:07 -06:00
shlex.py
singleton.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
ssh_functions.py Fix encoding error with path to ssh 2017-09-22 15:31:21 -07:00
unicode.py Remove deprecated code (#34828) 2018-01-23 12:02:09 -06:00
unsafe_proxy.py Handle sets differently than lists in wrap_var. Fixes #47372 (#47510) 2018-10-23 11:18:21 -05:00
vars.py move extravars and option vars loading into VM (#51070) 2019-01-30 16:25:36 -05:00