Fix worker

This commit is contained in:
Joseph Schorr 2015-10-28 14:33:29 -04:00 committed by Jimmy Zelinskie
parent 407eaae137
commit 7fa4fe08e7

View file

@ -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)