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
[2.8] [docker_network] Fix idempotency when using aux_addresses in ipam_config #56972
Conversation
…fig (ansible#56901) * [docker_network] Fix idempotency when using aux_addresses in ipam_config Mismatch between keys returned by Docker API (AuxilliaryAddresses) vs expected by Ansible module (aux_addresses) resulted in tasks always have status 'changed'. The existing code normalizing one set of keys to another missed this special case where converting CamelCase to lowercase is not sufficent. Please see https://github.com/moby/moby/blob/master/api/types/network/network.go for reference. * Correct keywords formatting in changelog file Co-Authored-By: Felix Fontein <felix@fontein.de> (cherry picked from commit 37df89b)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine for me! ;)
…e#56975) Integration tests for pull request ansible#56901 which fixes found issues with idempotence. (cherry picked from commit 6a50c6a)
I also included the extended tests from #56975. |
:type key: str | ||
:return Ansible module key | ||
:rtype str | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note, we use sphinx's format for documenting parameters.
Merged or the 2.8.1 release. |
SUMMARY
Backport of #56901 to stable-2.8. Fixes idempotency for
aux_addresses
.ISSUE TYPE
COMPONENT NAME
docker_network