Commit 6a84f4bc authored by Adrian DC's avatar Adrian DC
Browse files

fix: prepare #66: ensure missing 'image' key is properly detected

parent 428b6e6c
Loading
Loading
Loading
Loading
+3 −0
Changes for gitlabci_local/runner.py: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -269,6 +269,9 @@ def runner(options, job_data, last_result):
    if not local_runner:

        # Image validation
        if not image:
            raise ValueError(
                'Missing image for "%s / %s"' % (job_data['stage'], job_data['name']))
        try:
            client.images.get(image)
        except docker.errors.ImageNotFound: