From 9e25fde3a06f923ba0db11de1309e814e1b340ac Mon Sep 17 00:00:00 2001 From: Charlton Austin Date: Wed, 7 Dec 2016 12:53:07 -0500 Subject: [PATCH] Fixing api usage. --- workers/globalpromstats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workers/globalpromstats.py b/workers/globalpromstats.py index 3264f8338..ae4f43f27 100644 --- a/workers/globalpromstats.py +++ b/workers/globalpromstats.py @@ -45,10 +45,10 @@ class GlobalPrometheusStatsWorker(Worker): if features.SECURITY_SCANNER: # Clair repo counts. - unscanned_images_gauge.set( + unscanned_images_gauge.Set( get_count_of_images_eligible_for_scan(app.config.get('SECURITY_SCANNER_ENGINE_VERSION_TARGET', 2)) ) - images_gauge.set(total_image_count()) + images_gauge.Set(total_image_count()) def main():