Commit 8975fbdb authored by Stan Hu's avatar Stan Hu

Merge branch 'fix-custer-instance-invocation-scope' into 'master'

Fix Clusters::Instance invocation scope

See merge request gitlab-org/gitlab-ee!12740
parents ef8b0975 012d859e
......@@ -30,7 +30,7 @@ module EE
def find_instance_cluster_platform_kubernetes(environment: nil)
return super unless environment && feature_available?(:multiple_clusters)
Clusters::Instance.new.clusters.enabled.on_environment(environment)
::Clusters::Instance.new.clusters.enabled.on_environment(environment)
.first&.platform_kubernetes
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