From d5942d538f3411b10ae9b158ed3285c891cca2be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Thu, 25 Apr 2019 21:58:06 +0200 Subject: [PATCH] Fix image building following small refactoring --- tutor/images.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tutor/images.py b/tutor/images.py index 9fe6109..73121f0 100644 --- a/tutor/images.py +++ b/tutor/images.py @@ -34,11 +34,12 @@ argument_image = click.argument( ) def build(root, image, build_arg): config = tutor_config.load(root) - for tag in openedx_image_tags(config, image): + for img in openedx_image_names(config, image): + tag = get_tag(config, img) click.echo(fmt.info("Building image {}".format(tag))) command = [ "build", "-t", tag, - tutor_env.pathjoin(root, "build", image) + tutor_env.pathjoin(root, "build", img) ] for arg in build_arg: command += [