mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
docker_image(_pull), docker_container: fix compatibility with Docker 29.0.0 (#1192)
* Add debug flag to failing task.
* Add more debug output.
* Fix pull idempotency.
* Revert "Add more debug output."
This reverts commit 64020149bf.
* Fix casing.
* Remove unreliable test.
* Add 'debug: true' to all tasks.
* Reformat.
* Fix idempotency problem for IPv6 addresses.
* Fix expose ranges handling.
* Update changelog fragment to also mention other affected modules.
This commit is contained in:
@@ -25,6 +25,7 @@ from ansible_collections.community.docker.plugins.module_utils._util import (
|
||||
DockerBaseClass,
|
||||
compare_generic,
|
||||
is_image_name_id,
|
||||
normalize_ip_address,
|
||||
sanitize_result,
|
||||
)
|
||||
|
||||
@@ -925,13 +926,13 @@ class ContainerManager(DockerBaseClass, t.Generic[Client]):
|
||||
else:
|
||||
diff = False
|
||||
network_info_ipam = network_info.get("IPAMConfig") or {}
|
||||
if network.get("ipv4_address") and network[
|
||||
"ipv4_address"
|
||||
] != network_info_ipam.get("IPv4Address"):
|
||||
if network.get("ipv4_address") and normalize_ip_address(
|
||||
network["ipv4_address"]
|
||||
) != normalize_ip_address(network_info_ipam.get("IPv4Address")):
|
||||
diff = True
|
||||
if network.get("ipv6_address") and network[
|
||||
"ipv6_address"
|
||||
] != network_info_ipam.get("IPv6Address"):
|
||||
if network.get("ipv6_address") and normalize_ip_address(
|
||||
network["ipv6_address"]
|
||||
) != normalize_ip_address(network_info_ipam.get("IPv6Address")):
|
||||
diff = True
|
||||
if network.get("aliases") and not compare_generic(
|
||||
network["aliases"],
|
||||
|
||||
Reference in New Issue
Block a user