mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-05 02:58:55 +00:00
docker_image_export: Add 'platform' option
This commit is contained in:
parent
84719fb753
commit
f536b8967b
@ -243,7 +243,7 @@ class ImageExportManager(DockerBaseClass):
|
|||||||
self.fail(f"Error getting image {image_names[0]} - {exc}")
|
self.fail(f"Error getting image {image_names[0]} - {exc}")
|
||||||
else:
|
else:
|
||||||
self.log(f"Getting archive of images {image_names_str}")
|
self.log(f"Getting archive of images {image_names_str}")
|
||||||
params: dict[str, t.Any] = {"names": image_names}
|
params = {"names": image_names}
|
||||||
if self.platform:
|
if self.platform:
|
||||||
params["platform"] = self._platform_param()
|
params["platform"] = self._platform_param()
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user