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.
Name |
Last commit
|
Last update |
---|---|---|
bin | Loading commit data... | |
contrib | Loading commit data... | |
docs/man | Loading commit data... | |
docsite | Loading commit data... | |
examples | Loading commit data... | |
hacking | Loading commit data... | |
lib/ansible | Loading commit data... | |
packaging | Loading commit data... | |
samples | Loading commit data... | |
test | Loading commit data... | |
ticket_stubs | Loading commit data... | |
.coveragerc | Loading commit data... | |
.gitattributes | Loading commit data... | |
.gitignore | Loading commit data... | |
.gitmodules | Loading commit data... | |
.travis.yml | Loading commit data... | |
CHANGELOG.md | Loading commit data... | |
CODING_GUIDELINES.md | Loading commit data... | |
CONTRIBUTING.md | Loading commit data... | |
COPYING | Loading commit data... | |
ISSUE_TEMPLATE.md | Loading commit data... | |
MANIFEST.in | Loading commit data... | |
Makefile | Loading commit data... | |
README.md | Loading commit data... | |
RELEASES.txt | Loading commit data... | |
VERSION | Loading commit data... | |
setup.py | Loading commit data... | |
test-requirements.txt | Loading commit data... | |
tox.ini | Loading commit data... |