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:
patchback[bot] 2022-11-30 22:14:34 +01:00 committed by GitHub
parent 6512400b44
commit bb7f89974a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -362,6 +362,14 @@ if docker_version is not None:
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__()
@ -520,8 +528,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: