community.general/lib/ansible/utils
Matt Martz 8c08d03989
Fieldattribute inheritance with defaults (#50891)
* Add tests for check_mode at play and task level

These test inheritance of check_mode from the various levels (command
line, as a play attribute and as a task attribute) so they will be
useful for checking that the change to fieldattribute inheritance with
defaults works

* Add a sentinel object

The Sentinel object can be used in place of None when we need to mark an
entry as being special (usually used to mark something as not having
been set)

* Start of using a Sentinel object instead of None.

* Handle edge cases around use of Sentinel

* _get_parent_attribute needs to deal in Sentinel not None

* No need to special case any_errors_fatal in task.py any longer

* Handle more edge cases around Sentinel

* Use Sentinel instead of None in TaskInclude

* Update code to clarify the vars we are copying are class attrs

* Add changelog fragment

* Use a default of Sentinel for delegate_to, this also allows 'delegate_to: ~' now to unset inherited delegate_to

* Explain Sentinel stripping in _extend_value

* Fix ModuleArgsParser tests to compare with Sentinel

* Fixes for tasks inside of roles inheriting from play

* Remove incorrect note. ci_complete

* Remove commented code
2019-01-23 11:40:07 -06:00
..
module_docs_fragments Update vmware.py minor typo (#51047) 2019-01-21 13:52:26 +05:30
__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 ansible/utils/: PEP8 compliancy (#24686) 2017-05-30 18:09:44 +01:00
color.py Fix several things causing tracebacks with unicode cwd (#27731) 2017-08-04 09:25:08 -04:00
context_objects.py Move the arguments module into cli/ and context_objects into utils 2019-01-03 18:12:23 -08:00
display.py Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08: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 Remove cliconf from httpapi connection (#46813) 2018-12-11 16:26:59 -05:00
listify.py Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
path.py fix paths to actually be config file relative (#31533) 2017-10-10 19:17:17 -07:00
plugin_docs.py faster config loading (#48333) 2019-01-23 12:06:54 -05: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 Update module_utils.six to latest (#22855) 2017-03-23 13:35:05 -07:00
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 Save the command line arguments into a global context 2019-01-03 18:12:23 -08:00