Fix condition for contrail exporters
Change-Id: I06b11d513478a76d8d69d8ab7986df937b280ca4
Closes-Bug: PROD-20909
diff --git a/opencontrail/meta/prometheus.yml b/opencontrail/meta/prometheus.yml
index b2b13a5..9eadf93 100644
--- a/opencontrail/meta/prometheus.yml
+++ b/opencontrail/meta/prometheus.yml
@@ -1,7 +1,7 @@
{%- if pillar.opencontrail is defined %}
{%- from "opencontrail/map.jinja" import control, collector, compute, config, database, web, monitoring with context %}
- {%- if database_processes is defined and
+ {%- if database.get('enabled', False) and
database.get('cassandra', False) and
exporters is defined %}
{%- set packages = exporters.get('jmx', {}).get('packages', ('jmx-exporter', )) %}