From 7fa4fe08e7028cce3d673c591b3aae5aa6f5bdbe Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 28 Oct 2015 14:33:29 -0400 Subject: [PATCH] Fix worker --- workers/securityworker.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/workers/securityworker.py b/workers/securityworker.py index c6a940b4a..f3c2cd5b0 100644 --- a/workers/securityworker.py +++ b/workers/securityworker.py @@ -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)