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
Marius Gedminas 073f10a52a Python 3: don't convert module arguments to bytes
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.
10 years ago
..
cli fix classmethod syntax error. 10 years ago
compat Making the switch to v2 11 years ago
config Making the switch to v2 11 years ago
errors Improve handling of unicode errors 10 years ago
executor Python 3: there's no basestring 10 years ago
galaxy Cleaning up some ansible-galaxy stuff 10 years ago
inventory Revert to using local file/dir tests in inventory instead of loader's 10 years ago
module_utils Python 3: don't convert module arguments to bytes 10 years ago
modules fixed deprecation message 10 years ago
new_inventory fix some warning of undefined name. 10 years ago
parsing Revert "Track local_action internally to prevent it from being overridden" 10 years ago
playbook Python 3: there's no iteritems() 10 years ago
plugins added missing cachefile and changed str(e) to to_bytes(e) 10 years ago
template Python 3: the StringIO module is gone 10 years ago
utils Fix display when run through a testing framework that overrides stderr/stdout 10 years ago
vars Make UnsafeProxy work on Python 3 10 years ago
__init__.py Re-adding submodules after moving things around 11 years ago
constants.py Set explicit default for ANSIBLE_SSH_ARGS 10 years ago
test-requirements.txt Making the switch to v2 11 years ago