Skip to content

Commit

Permalink
Merge pull request #286 from CybercentreCanada/hotfix/harbor_image_name
Browse files Browse the repository at this point in the history
harbor/nested JSON fix
  • Loading branch information
cccs-rs authored Aug 30, 2021
2 parents 2a3e6d2 + 79cc602 commit 6242d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assemblyline_core/updater/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []


Expand Down

0 comments on commit 6242d6e

Please sign in to comment.