-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ansible-doc --json aws_s3_bucket_info" crashes #69031
Comments
|
The datetime bug is also triggered by more modules, see ansible-collections/community.aws#55 and ansible-collections/azure#101. |
fyi, running the provided reproducer in 2.9 i get:
|
@bcoca that's the reproducer for the bug you fixed. try |
@felixfontein that still works for me, I get full json output and no errors |
When I copy the code of that module from stable-2.9 into
|
SUMMARY
When running
ansible-doc --json aws_s3_bucket_info
in stable-2.9:I guess the problem is that the docs YAML contains something that is interpreted as a datetime by the YAML parser.
IMO ansible-doc should not crash, but instead convert everything that is not JSON-serializable to a string (or omit it).
This is important for everything that uses
ansible-doc --json
to extract docs (AFAIK Galaxy plans to do that).ISSUE TYPE
COMPONENT NAME
ansible-doc
ANSIBLE VERSION
The text was updated successfully, but these errors were encountered: