Fix worker
This commit is contained in:
parent
407eaae137
commit
7fa4fe08e7
1 changed files with 2 additions and 3 deletions
|
@ -222,7 +222,6 @@ class SecurityWorker(Worker):
|
|||
continue
|
||||
|
||||
logger.debug('Got response %s for vulnerabilities for layer %s', response.status_code, img['image_id'])
|
||||
|
||||
if response.status_code == 404:
|
||||
continue
|
||||
|
||||
|
@ -236,10 +235,10 @@ class SecurityWorker(Worker):
|
|||
matching = (RepositoryTag
|
||||
.select(RepositoryTag, Repository)
|
||||
.distinct()
|
||||
.where(RepositoryTag.image_id == img['id'])
|
||||
.join(Repository)
|
||||
.join(RepositoryNotification)
|
||||
.where(RepositoryNotification.event == event))
|
||||
.where(RepositoryNotification.event == event,
|
||||
RepositoryTag.image == img['image_id']))
|
||||
|
||||
repository_map = defaultdict(list)
|
||||
|
||||
|
|
Reference in a new issue