test/keywords/docker/images/object/docker_images_table_parser.py
croy 82d417b9e6 New StarlingX Automation Framework
Fresh start for the StarlingX automation framework.

Change-Id: Ie265e0791024f45f71faad6315c2b91b022934d1
2024-11-29 16:01:57 -05:00

24 lines
595 B
Python

from keywords.docker.docker_table_parser_base import DockerTableParserBase
class DockerImagesTableParser(DockerTableParserBase):
"""
Class for parsing the output of "docker images" commands.
"""
def __init__(self, docker_output):
"""
Constructor
Args:
docker_output: The raw String output of a docker command that returns a table.
"""
super().__init__(docker_output)
self.possible_headers = [
"REPOSITORY",
"TAG",
"IMAGE ID",
"CREATED",
"SIZE",
]