mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 12:28:55 +00:00
Add docstring to ImageManager.__init__ and fix docstring for ImageManager.archive_image (#509) (#511)
(cherry picked from commit ee9ddb954f)
Co-authored-by: iamjpotts <8704475+iamjpotts@users.noreply.github.com>
This commit is contained in:
parent
6512400b44
commit
bb7f89974a
@ -362,6 +362,14 @@ if docker_version is not None:
|
|||||||
class ImageManager(DockerBaseClass):
|
class ImageManager(DockerBaseClass):
|
||||||
|
|
||||||
def __init__(self, client, results):
|
def __init__(self, client, results):
|
||||||
|
'''
|
||||||
|
Configure a docker_image task.
|
||||||
|
|
||||||
|
:param client: Ansible Docker Client wrapper over Docker client
|
||||||
|
:type client: AnsibleDockerClient
|
||||||
|
:param results: This task adds its output values to this dictionary
|
||||||
|
:type results: dict
|
||||||
|
'''
|
||||||
|
|
||||||
super(ImageManager, self).__init__()
|
super(ImageManager, self).__init__()
|
||||||
|
|
||||||
@ -520,8 +528,10 @@ class ImageManager(DockerBaseClass):
|
|||||||
'''
|
'''
|
||||||
Archive an image to a .tar file. Called when archive_path is passed.
|
Archive an image to a .tar file. Called when archive_path is passed.
|
||||||
|
|
||||||
:param name - name of the image. Type: str
|
:param name: Name/repository of the image
|
||||||
:return None
|
:type name: str
|
||||||
|
:param tag: Optional image tag; assumed to be "latest" if None
|
||||||
|
:type tag: str | None
|
||||||
'''
|
'''
|
||||||
|
|
||||||
if not tag:
|
if not tag:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user