-
Bug
-
Resolution: Done
-
Normal
-
None
-
False
-
False
-
Undefined
-
-
AAH 4.3.0 Sprint 1
SUMMARY
Traceback with ansible-doc command when importing a collection
STEPS TO REPRODUCE
Available with import of ansible.posix here
Importing with galaxy-importer 0.2.8rc9 Getting doc strings via ansible-doc Error running ansible-doc: cmd="/usr/bin/env ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpc8u74pra ansible-doc --type callback --json ansible.posix.cgroup_perf_recap ansible.posix.debug ansible.posix.json ansible.posix.profile_roles ansible.posix.profile_tasks ansible.posix.skippy ansible.posix.timer" returncode="250" b"[WARNING]: Failed to create the directory '/.ansible': [Errno 13] Permission\ndenied: b'/.ansible'\n/venv/lib64/python3.6/site-packages/ansible/cli/doc.py:219: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.\n doc_data['return'] = yaml.load(doc_data['return'])\nERROR! Unexpected Exception, this is probably a bug: Object of type 'date' is not JSON serializable\n"
EXPECTED RESULTS
No Exception
ACTUAL RESULTS
Exception
Error running ansible-doc: cmd="/usr/bin/env ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpc8u74pra ansible-doc --type callback --json ansible.posix.cgroup_perf_recap ansible.posix.debug ansible.posix.json ansible.posix.profile_roles ansible.posix.profile_tasks ansible.posix.skippy ansible.posix.timer" returncode="250" b"[WARNING]: Failed to create the directory '/.ansible': [Errno 13] Permission\ndenied: b'/.ansible'\n/venv/lib64/python3.6/site-packages/ansible/cli/doc.py:219: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.\n doc_data['return'] = yaml.load(doc_data['return'])\nERROR! Unexpected Exception, this is probably a bug: Object of type 'date' is not JSON serializable\n"
- is duplicated by
-
AAH-341 Galaxy importer ansible-doc failures should fail the import
- Closed