diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2018-01-17 14:29:18 +0300 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2018-01-17 14:29:18 +0300 |
commit | 4b1d42bbc583b0884498bd129653587acc69ab0f (patch) | |
tree | 4d19d61d349f6f24829faf8b2ddb2c4549ed0778 /app/models/project_services | |
parent | 3727dfcd439f6224aa359e961fd6c0920e80718b (diff) |
check if service is template
Diffstat (limited to 'app/models/project_services')
-rw-r--r-- | app/models/project_services/prometheus_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project_services/prometheus_service.rb b/app/models/project_services/prometheus_service.rb index 3bf44c1ab2b..e540a2c646a 100644 --- a/app/models/project_services/prometheus_service.rb +++ b/app/models/project_services/prometheus_service.rb @@ -129,6 +129,7 @@ class PrometheusService < MonitoringService end def prometheus_installed? + return false if template? project.clusters.enabled.any? { |cluster| cluster.application_prometheus&.installed? } end |