Make sure images in the process of being uploaded are not scanned by Clair
This commit is contained in:
parent
8d722dee81
commit
0b706bc7c4
3 changed files with 11 additions and 1 deletions
|
@ -446,7 +446,8 @@ def get_image_pk_field():
|
|||
def get_images_eligible_for_scan(clair_version):
|
||||
""" Returns a query that gives all images eligible for a clair scan """
|
||||
return (get_image_with_storage_and_parent_base()
|
||||
.where(Image.security_indexed_engine < clair_version))
|
||||
.where(Image.security_indexed_engine < clair_version)
|
||||
.where(ImageStorage.uploading == False))
|
||||
|
||||
|
||||
def get_image_with_storage_and_parent_base():
|
||||
|
|
Reference in a new issue