- 15 Oct, 2015 3 commits
-
-
If you convert the error string to bytes and embed it inside another error string, you get Prefix: b'Embedded\nerror\nstring' which is not what we want. But we also don't want Unicode in error messages causing unexpected UnicodeEncodeErrors when on Python 2. So let's convert the error message into the native string type (bytes on Python 2, unicode on Python 3).
Marius Gedminas committed -
Fixes #12752
Toshio Kuratomi committed -
Toshio Kuratomi committed
-
- 14 Oct, 2015 15 commits
-
-
* Don't throw away the full path of the module code being loaded, as this can cause conflicts when files of the same name are being instantiated * Generalize the module loading code Fixes #12738
James Cammarata committed -
James Cammarata committed
-
integration tests for ansible modules core 2147
Chris Church committed -
Fix links to dynamic inventory script example.
Toshio Kuratomi committed -
:doc`aws_example` no longer existed.
jdelaporte committed -
reordering entries in glossary for alphabetical order
Toshio Kuratomi committed -
Toshio Kuratomi committed
-
Sandra Wills committed
-
Toshio Kuratomi committed
-
Toshio Kuratomi committed
-
Fixes #12742
James Cammarata committed -
Brian Coca committed
-
Python 3: don't convert module arguments to bytes
Toshio Kuratomi committed -
This reverts commit 073f10a5 and instead disables the failing test. We're focusing on Python 3 support on the controller first; modules will come later.
Marius Gedminas committed -
Fixes a test failure: ====================================================================== ERROR: test_module_utils_basic_ansible_module_creation (units.module_utils.test_basic.TestModuleUtilsBasic) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/mg/src/ansible/test/units/module_utils/test_basic.py", line 250, in test_module_utils_basic_ansible_module_creation supports_check_mode=True, File "/home/mg/src/ansible/lib/ansible/module_utils/basic.py", line 470, in __init__ self._check_required_arguments() File "/home/mg/src/ansible/lib/ansible/module_utils/basic.py", line 1050, in _check_required_arguments self.fail_json(msg="missing required arguments: %s" % ",".join(missing)) File "/home/mg/src/ansible/lib/ansible/module_utils/basic.py", line 1445, in fail_json sys.exit(1) SystemExit: 1 -------------------- >> begin captured stdout << --------------------- {"msg": "missing required arguments: foo", "failed": true} because converting 'foo' to bytes yields b'foo' on Python 3, which doesn't match the native-unicode 'foo' argument spec.
Marius Gedminas committed
-
- 13 Oct, 2015 16 commits
-
-
Python 3: there's no basestring
James Cammarata committed -
added "include" for ansible_ssh_ change to another section
Toshio Kuratomi committed -
Sandra Wills committed
-
Fixes #12719
James Cammarata committed -
Brian Coca committed
-
Brian Coca committed
-
Brian Coca committed
-
Ansible ssh changes docswork
James Cammarata committed -
Marius Gedminas committed
-
Python 3: there's no iteritems()
James Cammarata committed -
Marius Gedminas committed
-
Make ansible.vars.unsafe_proxy Python 3 friendly
James Cammarata committed -
Instead of str and unicode we have to deal with bytes and str.
Marius Gedminas committed -
Fixes ImportError: No module named '__builtin__' on Python 3.
Marius Gedminas committed -
James Cammarata committed
-
= committed
-
- 12 Oct, 2015 6 commits
-
-
Toshio Kuratomi committed
-
James Cammarata committed
-
AnsibleModules.log() fix for python3
Toshio Kuratomi committed -
Also add unittests for AnsibleModules.log() Fixes #12586
Toshio Kuratomi committed -
Toshio Kuratomi committed
-
Toshio Kuratomi committed
-