Commit 012d859e authored by Krasimir Angelov's avatar Krasimir Angelov Committed by Stan Hu

Fix Clusters::Instance invocation scope

Use `::Clusters::Instance` instead of just `Clusters::Instance` so that
this works in development too (there is also `EE::Clusters`).
parent ef8b0975
......@@ -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