Add docstring to ImageManager.__init__ and fix docstring for ImageManager.archive_image (#509)

This commit is contained in:
iamjpotts 2022-11-30 15:04:11 -06:00 committed by GitHub
parent 90086f00ad
commit ee9ddb954f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,6 +373,14 @@ from ansible_collections.community.docker.plugins.module_utils._api.utils.utils
class ImageManager(DockerBaseClass):
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__()
@ -531,8 +539,10 @@ class ImageManager(DockerBaseClass):
'''
Archive an image to a .tar file. Called when archive_path is passed.
:param name - name of the image. Type: str
:return None
:param name: Name/repository of the image
:type name: str
:param tag: Optional image tag; assumed to be "latest" if None
:type tag: str | None
'''
if not tag: