mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 20:38:42 +00:00
Add docstring to ImageManager.__init__ and fix docstring for ImageManager.archive_image (#509)
This commit is contained in:
parent
90086f00ad
commit
ee9ddb954f
@ -373,6 +373,14 @@ from ansible_collections.community.docker.plugins.module_utils._api.utils.utils
|
|||||||
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__()
|
||||||
|
|
||||||
@ -531,8 +539,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