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
|
continue
|
||||||
|
|
||||||
logger.debug('Got response %s for vulnerabilities for layer %s', response.status_code, img['image_id'])
|
logger.debug('Got response %s for vulnerabilities for layer %s', response.status_code, img['image_id'])
|
||||||
|
|
||||||
if response.status_code == 404:
|
if response.status_code == 404:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -236,10 +235,10 @@ class SecurityWorker(Worker):
|
||||||
matching = (RepositoryTag
|
matching = (RepositoryTag
|
||||||
.select(RepositoryTag, Repository)
|
.select(RepositoryTag, Repository)
|
||||||
.distinct()
|
.distinct()
|
||||||
.where(RepositoryTag.image_id == img['id'])
|
|
||||||
.join(Repository)
|
.join(Repository)
|
||||||
.join(RepositoryNotification)
|
.join(RepositoryNotification)
|
||||||
.where(RepositoryNotification.event == event))
|
.where(RepositoryNotification.event == event,
|
||||||
|
RepositoryTag.image == img['image_id']))
|
||||||
|
|
||||||
repository_map = defaultdict(list)
|
repository_map = defaultdict(list)
|
||||||
|
|
||||||
|
|
Reference in a new issue