From 79cc602344e2e881150eef251a35ada494437b85 Mon Sep 17 00:00:00 2001 From: cccs-rs <62077998+cccs-rs@users.noreply.github.com> Date: Mon, 30 Aug 2021 12:12:15 -0400 Subject: [PATCH] nested JSON fix --- assemblyline_core/updater/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assemblyline_core/updater/helper.py b/assemblyline_core/updater/helper.py index 9536b735..99cab5a8 100644 --- a/assemblyline_core/updater/helper.py +++ b/assemblyline_core/updater/helper.py @@ -49,7 +49,7 @@ def _get_proprietary_registry_tags(self, server, image_name, auth, verify): resp = requests.get(url, headers=headers, verify=verify) if resp.ok: - return [tag['name'] for tag in resp.json()[0]['tags']] + return [tag['name'] for tag in image['tags'] for image in resp.json()] return []