BigW Consortium Gitlab

Commit 637c9558 by Pawel Chojnacki

Fix failing test, when deployment platform is not bound to a cluster.

parent 0feeddaa
...@@ -233,8 +233,10 @@ class Environment < ActiveRecord::Base ...@@ -233,8 +233,10 @@ class Environment < ActiveRecord::Base
end end
def cluster_prometheus_adapter def cluster_prometheus_adapter
cluster = project.deployment_platform&.cluster return unless project.deployment_platform.respond_to?(:cluster)
return unless cluster&.application_prometheus&.installed?
cluster = project.deployment_platform.cluster
return unless cluster.application_prometheus&.installed?
cluster.application_prometheus cluster.application_prometheus
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment