in src/image_builder.py [0:0]
def _find_image_object(images_list, image_name):
"""
Find and return an image object from images_list with a name that matches image_name
Args:
images_list (list): List of <DockerImage> objects
image_name (str): Name of image as per buildspec
Returns:
DockerImage: Object with image_name as "name" attribute
"""
for image in images_list:
if image.name == image_name:
return image
return None