-
Notifications
You must be signed in to change notification settings - Fork 341
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
new helper function : normalize_boto3_result #271
Conversation
@jillr Stealing the logic from multiple community modules (because I need it in yet another one):
Before I sit down and write unit tests, any objections? |
@tremble I like the idea of this, I've run across it several times recently myself. I see the unit test but wanted to be sure that's what your previous comment referred to - is this one ready? |
This is ready for review. I initially pushed this before my first absence this month and wanted to get your opinion on pulling this code into module_utils. Decided to just get the unit tests written in the end. They're not 100% comprehensive, but they can be expanded if we find gaps. |
Ansible 2.9 has a test constraint for openshift >= 0.6.2, < 0.9.0. We're only specifying a minimum boto3 today and 1.16.x has released, which pulls in a newer urllib3 than that openshift supports.
SUMMARY
We have a number of modules using JSON round-tripping to convert dates into ISO-formatted strings. Move this into a common helper.
Right now this only does something unusual to datetime resources, but it's been left generic in case something else is needed (Booleans?)
Todo:
ISSUE TYPE
COMPONENT NAME
plugins/module_utils/core.py
ADDITIONAL INFORMATION