Merge pull request #2369 from jzelinskie/optim-qss
data.model.image: fake QSS progress metric
This commit is contained in:
commit
8957541844
1 changed files with 4 additions and 1 deletions
|
@ -502,7 +502,10 @@ def get_images_eligible_for_scan(clair_version):
|
||||||
|
|
||||||
def get_count_of_images_eligible_for_scan(clair_version):
|
def get_count_of_images_eligible_for_scan(clair_version):
|
||||||
""" Returns a query that gives all images eligible for a clair scan """
|
""" Returns a query that gives all images eligible for a clair scan """
|
||||||
return get_images_eligible_for_scan(clair_version).count()
|
# 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():
|
def get_image_with_storage_and_parent_base():
|
||||||
|
|
Reference in a new issue