Move the total image count stat back to the prom stat worker

This commit is contained in:
Jake Moshenko 2017-02-22 11:24:41 -05:00
parent deb2b1b003
commit add6b654ae
3 changed files with 5 additions and 13 deletions

View file

@ -500,14 +500,6 @@ def get_images_eligible_for_scan(clair_version):
return get_image_with_storage_and_parent_base().where(Image.security_indexed_engine < clair_version)
def get_count_of_images_eligible_for_scan(clair_version):
""" Returns a query that gives all images eligible for a clair scan """
# TODO(jzelinskie): Get this value from the slab allocator rather than querying the db
# This was the previous implementation:
# return get_images_eligible_for_scan(clair_version).count()
return 0
def get_image_with_storage_and_parent_base():
Parent = Image.alias()
ParentImageStorage = ImageStorage.alias()