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
This commit is contained in:
Adrian Turjak 2020-09-24 16:16:27 +12:00
parent 4fe7f644f8
commit 4565122264
1 changed files with 2 additions and 1 deletions

View File

@ -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]