Skip to content

Commit

Permalink
Merge pull request #292 from CybercentreCanada/persistent-service-update
Browse files Browse the repository at this point in the history
harbor fix
  • Loading branch information
cccs-rs authored Sep 3, 2021
2 parents 56aa567 + 4e8aa35 commit ec0a520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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 @@ -47,6 +47,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
1 change: 1 addition & 0 deletions assemblyline_core/updater/run_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ def __init__(self, redis_persist=None, redis=None, logger=None, datastore=None):
# have some performance down sides, but may help us run into fewer docker FS overlay
# cleanup issues. Try to flush it out every time we start. This service should
# be a singleton anyway.

################################# DELETE FOR PSU CHANGE#########################
# self.temporary_directory = os.path.join(FILE_UPDATE_DIRECTORY, '.tmp')
# shutil.rmtree(self.temporary_directory, ignore_errors=True)
Expand Down

0 comments on commit ec0a520

Please sign in to comment.