From 456512226421bf69ac7d4fa52fba210288c3f542 Mon Sep 17 00:00:00 2001 From: Adrian Turjak Date: Thu, 24 Sep 2020 16:16:27 +1200 Subject: [PATCH] Make Distil Health check respect collection domains Without this, when that config is set, the healthcheck will report uncollected projects that aren't being collected anymore. Change-Id: Ife60eee1400ec596565188b477d64f68b247fcec --- distil/service/api/v2/health.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/distil/service/api/v2/health.py b/distil/service/api/v2/health.py index f5010dc..a8aa8e4 100644 --- a/distil/service/api/v2/health.py +++ b/distil/service/api/v2/health.py @@ -43,7 +43,8 @@ def get_health(): """ result = {} - projects_keystone = openstack.get_projects() + projects_keystone = openstack.get_projects( + domains=CONF.collector.include_domains) keystone_projects = [t['id'] for t in projects_keystone if t['name'] not in CONF.collector.ignore_tenants]