From a6ba86a4c47f1cb1472c353b19ab445da1846afc Mon Sep 17 00:00:00 2001 From: Clemens Klug Date: Mon, 6 Aug 2018 13:20:40 +0200 Subject: [PATCH] fixes --- show_updateable.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/show_updateable.py b/show_updateable.py index bb5dbdb..9155c88 100644 --- a/show_updateable.py +++ b/show_updateable.py @@ -16,7 +16,6 @@ def find_updates(image_ref, usages): } - def main(args): updates = {} images = docker_compose.start(args.compose_files, args.ignore) @@ -27,19 +26,18 @@ def main(args): continue updates[image_ref] = find_updates(image_ref, images[image][tag]) for usage in images[image][tag]: - if "base_image" in usage: + if not "base_images" in usage: continue - for base in usage["base_image"]: + for base in usage["base_images"]: if base in updates: continue else: info = { - "base_image": True, - "path:" images[image][tag]["path"], - "service_name": images[image][tag]["service_name"] + "is_base_image": True, + "path": usage["path"], + "service_name": usage["service_name"] } updates[base] = find_updates(base, info) - if args.output: with open(args.output, "w") as out: