From 91c28a5de4617a74c7d61f21008f21117265823e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Fri, 2 Oct 2020 13:02:10 +0200 Subject: [PATCH] Fix undefined variable and pylint warnings --- tutor/commands/images.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutor/commands/images.py b/tutor/commands/images.py index 01c9cdb..6d03efc 100644 --- a/tutor/commands/images.py +++ b/tutor/commands/images.py @@ -57,7 +57,7 @@ def build(context, image_names, no_cache, build_args, add_hosts): def pull(context, image_names): config = tutor_config.load(context.root) for image in image_names: - pull_image(config, i) + pull_image(config, image) @click.command(short_help="Push images to the Docker registry") @@ -100,7 +100,7 @@ def build_image(root, config, image, *args): def pull_image(config, image): - for _img, tag in iter_images(config, image, image_names(config)): + for _img, tag in iter_images(config, image, all_image_names(config)): images.pull(tag) for _plugin, _img, tag in iter_plugin_images(config, image, "remote-image"): images.pull(tag) @@ -128,7 +128,7 @@ def iter_plugin_images(config, image, hook_name): yield plugin, img, tag -def image_names(config): +def all_image_names(config): return BASE_IMAGE_NAMES + vendor_image_names(config)