Skip to content

Commit

Permalink
Merge pull request #285 from CybercentreCanada/hotfix/harbor_image_name
Browse files Browse the repository at this point in the history
replace / with %2F in repo_id
  • Loading branch information
cccs-rs committed Aug 26, 2021
2 parents 8a0d794 + 5f04252 commit 2a3e6d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assemblyline_core/updater/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class HarborRegistry(ContainerRegistry):
def _get_proprietary_registry_tags(self, server, image_name, auth, verify):
# Determine project/repo IDs from image name
project_id, repo_id = image_name.split('/', 1)
repo_id = repo_id.replace('/', "%2F")
url = f"https://{server}/api/v2.0/projects/{project_id}/repositories/{repo_id}/artifacts"

headers = {}
Expand Down

0 comments on commit 2a3e6d2

Please sign in to comment.