community.general/lib/ansible
Toshio Kuratomi 84a59e472b Be explicit about pickle protocol and encoding (#24454)
On Python3 and Python2 use pickle slightly differently so we need to be
explicit about some things.

If pickles could be shared between python2 and python3, as in
ansible-connection and the pickle cache, we need to specify the protocol
to use when dumping and the encoding to use for byte strings when
loading.

The dumping protocol needs to be no higher than 2 as python-2 only
supports up to protocol 2.  The encoding should usually be 'bytes' so
that python2 str type becomes python3 bytes type.  However, doing this
means that we must make sure that the objects being serialized properly
make their strings into text strings except when they're supposed to be
bytes.  If strings are improperly byte strings, they may cause
tracebacks on the receiving end
2017-05-12 18:04:48 -07:00
..
cli ansible-doc snippet format changes 2017-05-04 09:08:19 -07:00
compat Update module_utils.six to latest (#22855) 2017-03-23 13:35:05 -07:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors moved to exceptions for basic skip/fails 2017-04-25 14:48:56 -04:00
executor deal with null/none connections 2017-05-11 15:46:14 -04:00
galaxy fix ansible galaxy file mangling (#23703) 2017-04-19 14:15:20 -04:00
inventory correctly get all hosts in 'all' 2017-04-07 13:17:03 -04:00
module_utils Be explicit about pickle protocol and encoding (#24454) 2017-05-12 18:04:48 -07:00
modules [cloud] Stop ec2_group module from authorizing duplicate rules (#24528) 2017-05-12 14:54:25 -04:00
parsing Fix vaulted vars templating (#24312) 2017-05-05 11:07:50 -04:00
playbook Avoid default serialization of classes in dump_attrs 2017-05-11 16:28:07 -05:00
plugins Be explicit about pickle protocol and encoding (#24454) 2017-05-12 18:04:48 -07:00
template Fixing security issue with lookup returns not tainting the jinja2 environment 2017-05-08 12:43:46 -05:00
utils Fortios file only mode + integration tests (#23275) 2017-05-09 13:51:19 +01:00
vars Fix circular import with unsafe_proxy, template, and vars 2017-04-28 15:35:30 -07:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Fixing security issue with lookup returns not tainting the jinja2 environment 2017-05-08 12:43:46 -05:00
release.py Bumping devel version to 2.4.0 2017-03-15 09:42:01 -05:00