community.docker/tests/unit/plugins
Paul Berruti 31cebc66bf fix: Handle tag@digest format in push_image method
Extends the tag@digest fix to also cover push operations in docker_image.py.
The push_image() method was passing combined tag@digest format directly to
the Docker API's /images/{name}/push endpoint, which fails with
"invalid tag format" errors.

This fix:
1. Imports build_pull_arguments() into docker_image.py
2. Uses the helper in push_image() before calling the API
3. When tag contains @ (but isn't a pure digest), passes the full
   reference as the image name and omits the tag parameter

This complements the previous fix to pull_image() methods, ensuring
both pull and push operations handle tag@digest correctly.
2025-11-23 19:48:02 -08:00
..
connection Add typing information, 2/n (#1178) 2025-10-25 01:16:04 +02:00
inventory Python code modernization, 8/n (#1179) 2025-10-25 00:36:04 +00:00
module_utils fix: Handle tag@digest format in push_image method 2025-11-23 19:48:02 -08:00
modules Cleanup with ruff check (#1182) 2025-10-28 06:58:15 +01:00
plugin_utils Add typing information, 2/n (#1178) 2025-10-25 01:16:04 +02:00
test_support Cleanup with ruff check (#1182) 2025-10-28 06:58:15 +01:00