From ae3c9f4a93a76ef2220c11501d925950cfa5a46f Mon Sep 17 00:00:00 2001 From: cccs-rs <62077998+cccs-rs@users.noreply.github.com> Date: Mon, 30 Aug 2021 12:27:31 -0400 Subject: [PATCH] swap order for list comp. --- 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 99cab5a8..3b46bd4f 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 image['tags'] for image in resp.json()] + return [tag['name'] for image in resp.json() for tag in image['tags']] return []